diff options
author | Novatux <nathanael.courant@laposte.net> | 2014-01-03 13:29:38 +0100 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2014-01-03 13:29:38 +0100 |
commit | e3a27452e7641d41a3b5ac92d79fc9cefb877224 (patch) | |
tree | 465069370c9238d287191d360fe067528960b595 /autoplace_tubes.lua | |
parent | ddfc8173ac89e03b38ced53f095acf7fcb7e3249 (diff) |
Support for the mesecons mvps callbackorigin/mvps
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 + |