Skip to content

Commit

Permalink
Recognize group morelights_supports_stairlight.
Browse files Browse the repository at this point in the history
  • Loading branch information
random-geek committed Dec 2, 2022
1 parent ee8facb commit f4aa82a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions morelights_extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,12 @@ minetest.register_node("morelights_extras:stairlight", {
end
end

if node.param2 < 4
and (node.name:match("^stairs:stair_")
or node.name:match("^mcl_stairs:stair_")
or node.name:match("^hades_stairs:stair_")
or (minetest.get_item_group(node.name,"support_stairlight")>0)) then
if node.param2 < 4 and (
node.name:match("^stairs:stair_")
or node.name:match("^mcl_stairs:stair_")
or node.name:match("^hades_stairs:stair_")
or minetest.get_item_group(node.name, "morelights_supports_stairlight") ~= 0
) then
-- Set `above` to the node actually above the stair, since that's
-- where the node is placed.
pointed_thing.above =
Expand Down

0 comments on commit f4aa82a

Please sign in to comment.