make all tubes call the routing functions

using their after_place/after_dig callbacks
This commit is contained in:
Vanessa Ezekowitz
2015-02-07 02:45:17 -05:00
parent e33b662274
commit 364633d884
5 changed files with 19 additions and 24 deletions

View File

@ -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