diff options
Diffstat (limited to 'autoplace_tubes.lua')
-rw-r--r-- | autoplace_tubes.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/autoplace_tubes.lua b/autoplace_tubes.lua index 518caf8..72d1835 100644 --- a/autoplace_tubes.lua +++ b/autoplace_tubes.lua @@ -1,6 +1,6 @@ -- autorouting for pneumatic tubes -function tube_scanforobjects(pos) +function pipeworks.scan_for_tube_objects(pos) if pos == nil then return end tube_autoroute({ x=pos.x-1, y=pos.y , z=pos.z }) tube_autoroute({ x=pos.x+1, y=pos.y , z=pos.z }) @@ -139,7 +139,7 @@ minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack if minetest.registered_items[newnode.name] and minetest.registered_items[newnode.name].tube and minetest.registered_items[newnode.name].tube.connect_sides then - tube_scanforobjects(pos) + pipeworks.scan_for_tube_objects(pos) end end) @@ -147,7 +147,7 @@ minetest.register_on_dignode(function(pos, oldnode, digger) if minetest.registered_items[oldnode.name] and minetest.registered_items[oldnode.name].tube and minetest.registered_items[oldnode.name].tube.connect_sides then - tube_scanforobjects(pos) + pipeworks.scan_for_tube_objects(pos) end end) |