aboutsummaryrefslogtreecommitdiff
path: root/stairsplus/stairs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'stairsplus/stairs.lua')
-rw-r--r--stairsplus/stairs.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua
index 0291e7d..55ee51e 100644
--- a/stairsplus/stairs.lua
+++ b/stairsplus/stairs.lua
@@ -126,6 +126,7 @@ end
function stairsplus:register_stair(modname, subname, recipeitem, fields)
local defs = stairsplus.copytable(stairs_defs)
local desc = S("%s Stairs"):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
@@ -133,6 +134,7 @@ function stairsplus:register_stair(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)