diff options
author | Novatux <nathanael.courant@laposte.net> | 2014-01-03 13:29:38 +0100 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2014-01-03 21:36:10 +0100 |
commit | d33eb89dcb1888ee1c194161e5526db5399e1e53 (patch) | |
tree | ea0337b56bf4cd21f89c1bfaa48749fa3ae6fdab /autoplace_tubes.lua | |
parent | 9a9bd2f491ecb4b62ebc069ca61ad917da584ce9 (diff) |
Support for the mesecons mvps callback
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 + |