1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-29 23:00:49 +02:00

add signs_lib placement rules

only works on signs_lib commit dcdee222 or later.
This commit is contained in:
Vanessa Dannenberg
2019-09-23 12:21:54 -04:00
parent d5fe933456
commit 75cfac34e6
7 changed files with 266 additions and 5 deletions

View File

@ -706,7 +706,9 @@ minetest.register_node(nodename_sp_empty, {
end,
selection_box = sp_cbox,
collision_box = sp_cbox,
on_rotate = pipeworks.fix_after_rotation
on_rotate = pipeworks.fix_after_rotation,
check_for_pole = pipeworks.check_for_vert_pipe,
check_for_horiz_pole = pipeworks.check_for_horiz_pipe
})
local nodename_sp_loaded = "pipeworks:straight_pipe_loaded"
@ -727,7 +729,9 @@ minetest.register_node(nodename_sp_loaded, {
selection_box = sp_cbox,
collision_box = sp_cbox,
drop = "pipeworks:straight_pipe_empty",
on_rotate = pipeworks.fix_after_rotation
on_rotate = pipeworks.fix_after_rotation,
check_for_pole = pipeworks.check_for_vert_pipe,
check_for_horiz_pole = pipeworks.check_for_horiz_pipe
})
new_flow_logic_register.directional_horizonal_rotate(nodename_sp_empty, true)