From eff07d2e0c93dcefe4a7170b3939b6a9a172d462 Mon Sep 17 00:00:00 2001 From: Och Noe Date: Fri, 20 Sep 2024 00:50:48 +0200 Subject: texture transparency patches, made by erstazi THANKS --- stairsplus/panels.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stairsplus/panels.lua') diff --git a/stairsplus/panels.lua b/stairsplus/panels.lua index 82a7300..4ffd8ca 100644 --- a/stairsplus/panels.lua +++ b/stairsplus/panels.lua @@ -86,6 +86,7 @@ end function stairsplus:register_panel(modname, subname, recipeitem, fields) local defs = stairsplus.copytable(panels_defs) local desc = S("%s Panel"):format(fields.description) + local use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "blend" or fields.use_texture_alpha for alternate, def in pairs(defs) do for k, v in pairs(fields) do def[k] = v @@ -93,6 +94,7 @@ function stairsplus:register_panel(modname, subname, recipeitem, fields) def.drawtype = "nodebox" def.paramtype = "light" def.paramtype2 = def.paramtype2 or "facedir" + def.use_texture_alpha = use_texture_alpha def.on_place = minetest.rotate_node def.description = desc def.groups = stairsplus:prepare_groups(fields.groups) -- cgit v1.2.3