aboutsummaryrefslogtreecommitdiff
path: root/stairsplus/slabs.lua
diff options
context:
space:
mode:
authorOch Noe <och_noe@forksworld.de>2024-09-20 00:50:48 +0200
committerOch Noe <och_noe@forksworld.de>2024-09-20 00:50:48 +0200
commiteff07d2e0c93dcefe4a7170b3939b6a9a172d462 (patch)
tree71109fc6a50ffdf0edfdd3ebefdca530c4ce9d1f /stairsplus/slabs.lua
parenteeb4f5cf3ca2742a4ebf94ae8d5b8b3c68245a9e (diff)
downloadmoreblocks-eff07d2e0c93dcefe4a7170b3939b6a9a172d462.tar.gz
moreblocks-eff07d2e0c93dcefe4a7170b3939b6a9a172d462.tar.bz2
moreblocks-eff07d2e0c93dcefe4a7170b3939b6a9a172d462.zip
texture transparency patches, made by erstazi THANKS
Diffstat (limited to 'stairsplus/slabs.lua')
-rw-r--r--stairsplus/slabs.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua
index 3af7d7e..18a25a7 100644
--- a/stairsplus/slabs.lua
+++ b/stairsplus/slabs.lua
@@ -65,6 +65,7 @@ end
function stairsplus:register_slab(modname, subname, recipeitem, fields)
local defs = stairsplus.copytable(slabs_defs)
local desc_base = S("%s Slab"):format(fields.description)
+ local use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "blend" or fields.use_texture_alpha
for alternate, shape in pairs(defs) do
local def = {}
@@ -94,6 +95,7 @@ function stairsplus:register_slab(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.groups = stairsplus:prepare_groups(fields.groups)
if alternate == "_1" or alternate == "_two_sides" then