mirror of
https://github.com/random-geek/morelights.git
synced 2024-12-12 08:53:20 +01:00
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:
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 =
|
||||
|
Loading…
Reference in New Issue
Block a user