From 433878a938a2b74f50ae1fcff47705b34c3c43e3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 4 Apr 2021 17:29:53 +0200 Subject: [PATCH] Add use_texture_alpha compability --- init.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 1faf164..0ea799f 100644 --- a/init.lua +++ b/init.lua @@ -1219,12 +1219,19 @@ S("The node HUD is not updated automatically and may be outdated. The node HUD o end, }) +local use_texture_alpha_void +if minetest.features.use_texture_alpha_string_modes then + use_texture_alpha_void = "clip" +else + use_texture_alpha_void = true +end + minetest.register_node("schemedit:void", { description = S("Schematic Void"), _doc_items_longdesc = S("This is an utility block used in the creation of schematic files. It should be used together with a schematic creator. When saving a schematic, all nodes with a schematic void will be left unchanged when the schematic is placed again. Technically, this is equivalent to a block with the node probability set to 0."), _doc_items_usagehelp = S("Just place the schematic void like any other block and use the schematic creator to save a portion of the world."), tiles = { "schemedit_void.png" }, - use_texture_alpha = "clip", + use_texture_alpha = use_texture_alpha_void, drawtype = "nodebox", is_ground_content = false, paramtype = "light",