diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 02:45:17 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 02:45:17 -0500 |
commit | 364633d884fa2420ab13f5444e06fb418e61d5c2 (patch) | |
tree | 113239b12b575367cb918f433d985d2e6138eb23 /autoplace_tubes.lua | |
parent | e33b662274982bf6be8213975675407633d5d92e (diff) |
make all tubes call the routing functions
using their after_place/after_dig callbacks
Diffstat (limited to 'autoplace_tubes.lua')
-rw-r--r-- | autoplace_tubes.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autoplace_tubes.lua b/autoplace_tubes.lua index 1d4732a..280bd60 100644 --- a/autoplace_tubes.lua +++ b/autoplace_tubes.lua @@ -103,6 +103,14 @@ function pipeworks.scan_for_tube_objects(pos) end end +function pipeworks.after_place(pos) + pipeworks.scan_for_tube_objects(pos) +end + +function pipeworks.after_dig(pos) + pipeworks.scan_for_tube_objects(pos) +end + if minetest.get_modpath("mesecons_mvps") then mesecon.register_on_mvps_move(function(moved_nodes) for _, n in ipairs(moved_nodes) do |