Add stairlight support nodes in group support_stairlight. (usefool for roofs, with identical structure like stairs, but with name not begining with text stairs:

This commit is contained in:
SFENCE 2022-10-27 23:22:30 +02:00
parent d13c9aaed6
commit ee8facbfe0

@ -180,7 +180,8 @@ minetest.register_node("morelights_extras:stairlight", {
if node.param2 < 4
and (node.name:match("^stairs:stair_")
or node.name:match("^mcl_stairs:stair_")
or node.name:match("^hades_stairs:stair_")) then
or node.name:match("^hades_stairs:stair_")
or (minetest.get_item_group(node.name,"support_stairlight")>0)) then
-- Set `above` to the node actually above the stair, since that's
-- where the node is placed.
pointed_thing.above =