6363
6464function stairs .register_stair (subname , recipeitem , groups , images , description ,
6565 sounds , worldaligntex )
66+ local src_def = minetest .registered_nodes [recipeitem ]
67+
6668 -- Set backface culling and world-aligned textures
6769 local stair_images = {}
6870 for i , image in ipairs (images ) do
@@ -91,6 +93,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
9193 description = description ,
9294 drawtype = " nodebox" ,
9395 tiles = stair_images ,
96+ use_texture_alpha = src_def and src_def .use_texture_alpha ,
9497 paramtype = " light" ,
9598 paramtype2 = " facedir" ,
9699 is_ground_content = false ,
162165
163166function stairs .register_slab (subname , recipeitem , groups , images , description ,
164167 sounds , worldaligntex )
168+ local src_def = minetest .registered_nodes [recipeitem ]
169+
165170 -- Set world-aligned textures
166171 local slab_images = {}
167172 for i , image in ipairs (images ) do
@@ -186,6 +191,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
186191 description = description ,
187192 drawtype = " nodebox" ,
188193 tiles = slab_images ,
194+ use_texture_alpha = src_def and src_def .use_texture_alpha ,
189195 paramtype = " light" ,
190196 paramtype2 = " facedir" ,
191197 is_ground_content = false ,
297303
298304function stairs .register_stair_inner (subname , recipeitem , groups , images ,
299305 description , sounds , worldaligntex , full_description )
306+ local src_def = minetest .registered_nodes [recipeitem ]
307+
300308 -- Set backface culling and world-aligned textures
301309 local stair_images = {}
302310 for i , image in ipairs (images ) do
@@ -330,6 +338,7 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images,
330338 description = description ,
331339 drawtype = " nodebox" ,
332340 tiles = stair_images ,
341+ use_texture_alpha = src_def and src_def .use_texture_alpha ,
333342 paramtype = " light" ,
334343 paramtype2 = " facedir" ,
335344 is_ground_content = false ,
384393
385394function stairs .register_stair_outer (subname , recipeitem , groups , images ,
386395 description , sounds , worldaligntex , full_description )
396+ local src_def = minetest .registered_nodes [recipeitem ]
397+
387398 -- Set backface culling and world-aligned textures
388399 local stair_images = {}
389400 for i , image in ipairs (images ) do
@@ -417,6 +428,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images,
417428 description = description ,
418429 drawtype = " nodebox" ,
419430 tiles = stair_images ,
431+ use_texture_alpha = src_def and src_def .use_texture_alpha ,
420432 paramtype = " light" ,
421433 paramtype2 = " facedir" ,
422434 is_ground_content = false ,
0 commit comments