Skip to content

Commit f4aa82a

Browse files
committed
Recognize group morelights_supports_stairlight.
1 parent ee8facb commit f4aa82a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

morelights_extras/init.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,12 @@ minetest.register_node("morelights_extras:stairlight", {
177177
end
178178
end
179179

180-
if node.param2 < 4
181-
and (node.name:match("^stairs:stair_")
182-
or node.name:match("^mcl_stairs:stair_")
183-
or node.name:match("^hades_stairs:stair_")
184-
or (minetest.get_item_group(node.name,"support_stairlight")>0)) then
180+
if node.param2 < 4 and (
181+
node.name:match("^stairs:stair_")
182+
or node.name:match("^mcl_stairs:stair_")
183+
or node.name:match("^hades_stairs:stair_")
184+
or minetest.get_item_group(node.name, "morelights_supports_stairlight") ~= 0
185+
) then
185186
-- Set `above` to the node actually above the stair, since that's
186187
-- where the node is placed.
187188
pointed_thing.above =

0 commit comments

Comments
 (0)