summaryrefslogtreecommitdiff
path: root/tube_registration.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 /tube_registration.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 'tube_registration.lua')
-rw-r--r--tube_registration.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tube_registration.lua b/tube_registration.lua
index 7bef10e..e92e676 100644
--- a/tube_registration.lua
+++ b/tube_registration.lua
@@ -116,7 +116,10 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e
end
minetest.swap_node(pos, {name = "pipeworks:broken_tube_1"})
pipeworks.scan_for_tube_objects(pos)
- end
+ end,
+ check_for_pole = pipeworks.check_for_vert_tube,
+ check_for_horiz_pole = pipeworks.check_for_horiz_tube,
+ tubenumber = tonumber(tname)
}
if style == "6d" then
nodedef.paramtype2 = "facedir"