Skip to content

Commit ee8facb

Browse files
committed
Add stairlight support nodes in group support_stairlight. (usefool for roofs, with identical structure like stairs, but with name not begining with text stairs:
1 parent d13c9aa commit ee8facb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

morelights_extras/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ minetest.register_node("morelights_extras:stairlight", {
180180
if node.param2 < 4
181181
and (node.name:match("^stairs:stair_")
182182
or node.name:match("^mcl_stairs:stair_")
183-
or node.name:match("^hades_stairs:stair_")) then
183+
or node.name:match("^hades_stairs:stair_")
184+
or (minetest.get_item_group(node.name,"support_stairlight")>0)) then
184185
-- Set `above` to the node actually above the stair, since that's
185186
-- where the node is placed.
186187
pointed_thing.above =

0 commit comments

Comments
 (0)