summaryrefslogtreecommitdiff
path: root/autoplace_tubes.lua
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-01-03 13:29:38 +0100
committerNovatux <nathanael.courant@laposte.net>2014-01-03 13:29:38 +0100
commite3a27452e7641d41a3b5ac92d79fc9cefb877224 (patch)
tree465069370c9238d287191d360fe067528960b595 /autoplace_tubes.lua
parentddfc8173ac89e03b38ced53f095acf7fcb7e3249 (diff)
Support for the mesecons mvps callbackorigin/mvps
Diffstat (limited to 'autoplace_tubes.lua')
-rw-r--r--autoplace_tubes.lua9
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
+