summaryrefslogtreecommitdiff
path: root/mesecons_mvps
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_mvps')
-rw-r--r--mesecons_mvps/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/mesecons_mvps/init.lua b/mesecons_mvps/init.lua
index 08c4785..a335f25 100644
--- a/mesecons_mvps/init.lua
+++ b/mesecons_mvps/init.lua
@@ -255,3 +255,13 @@ mesecon.register_mvps_stopper("doors:door_steel_b_2")
mesecon.register_mvps_stopper("doors:door_steel_t_2")
mesecon.register_mvps_stopper("default:chest_locked")
mesecon.register_on_mvps_move(mesecon.move_hot_nodes)
+mesecon.register_on_mvps_move(function(moved_nodes)
+ for i = 1, #moved_nodes do
+ local moved_node = moved_nodes[i]
+ local node_def = minetest.registered_nodes[moved_node.node.name]
+ if node_def and node_def.mesecon and node_def.mesecon.on_mvps_move then
+ node_def.mesecon.on_mvps_move(moved_node.pos, moved_node.node,
+ moved_node.oldpos, moved_node.meta)
+ end
+ end
+end)