summaryrefslogtreecommitdiff
path: root/devices.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-09-23 12:21:54 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-09-23 15:41:56 -0400
commit75cfac34e69aabb07c5f8b288c98c1e1164685bf (patch)
tree27a8a7259378df14d278ecc1c44752b3d4c824d3 /devices.lua
parentd5fe93345694f2d24f3f9006df5d05be5f9fe298 (diff)
downloadpipeworks-75cfac34e69aabb07c5f8b288c98c1e1164685bf.tar
pipeworks-75cfac34e69aabb07c5f8b288c98c1e1164685bf.tar.gz
pipeworks-75cfac34e69aabb07c5f8b288c98c1e1164685bf.tar.bz2
pipeworks-75cfac34e69aabb07c5f8b288c98c1e1164685bf.tar.xz
pipeworks-75cfac34e69aabb07c5f8b288c98c1e1164685bf.zip
add signs_lib placement rules
only works on signs_lib commit dcdee222 or later.
Diffstat (limited to 'devices.lua')
-rw-r--r--devices.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/devices.lua b/devices.lua
index 340fc4d..3d23210 100644
--- a/devices.lua
+++ b/devices.lua
@@ -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)