diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-12-15 02:53:10 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-12-15 02:53:10 -0500 |
commit | bd80f18cfce1fb69e78f7d5ce63e7264718378e7 (patch) | |
tree | 5eb36d4656efe3de30db472dd7793f9985ba8af8 /autoplace_tubes.lua | |
parent | b43a1036cae2fda49453a2c0a97b9ed2f6d16023 (diff) |
local-ize pretty muchg everything that was previously global except where
stuff needs to be globally-visible. Also, fix a bad drop on valve.
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) |