diff options
Diffstat (limited to 'autoplace_tubes.lua')
-rw-r--r-- | autoplace_tubes.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/autoplace_tubes.lua b/autoplace_tubes.lua index 874b3e6..441e62a 100644 --- a/autoplace_tubes.lua +++ b/autoplace_tubes.lua @@ -157,3 +157,12 @@ minetest.register_on_dignode(function(pos, oldnode, digger) end end) +if minetest.get_modpath("mesecons_mvps") ~= nil then + mesecon:register_on_mvps_move(function(moved_nodes) + for _, n in ipairs(moved_nodes) do + pipeworks.scan_for_tube_objects(n.pos) + pipeworks.scan_for_tube_objects(n.oldpos) + end + end) +end + |