Skip to content

Commit

Permalink
Add stairlight support nodes in group support_stairlight. (usefool fo…
Browse files Browse the repository at this point in the history
…r roofs, with identical structure like stairs, but with name not begining with text stairs:
  • Loading branch information
sfence committed Oct 27, 2022
1 parent d13c9aa commit ee8facb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion morelights_extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit ee8facb

Please sign in to comment.