diff options
author | Och Noe <och_noe@forksworld.de> | 2024-09-20 00:50:48 +0200 |
---|---|---|
committer | Och Noe <och_noe@forksworld.de> | 2024-09-20 00:50:48 +0200 |
commit | eff07d2e0c93dcefe4a7170b3939b6a9a172d462 (patch) | |
tree | 71109fc6a50ffdf0edfdd3ebefdca530c4ce9d1f /stairsplus/panels.lua | |
parent | eeb4f5cf3ca2742a4ebf94ae8d5b8b3c68245a9e (diff) | |
download | moreblocks-eff07d2e0c93dcefe4a7170b3939b6a9a172d462.tar.gz moreblocks-eff07d2e0c93dcefe4a7170b3939b6a9a172d462.tar.bz2 moreblocks-eff07d2e0c93dcefe4a7170b3939b6a9a172d462.zip |
texture transparency patches, made by erstazi THANKS
Diffstat (limited to 'stairsplus/panels.lua')
-rw-r--r-- | stairsplus/panels.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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) |