mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 05:50:17 +02:00
Remove redundant on_placenode calls after movement (#586)
This commit is contained in:
committed by
GitHub
parent
4c5b13a347
commit
c9dd323207
@ -47,10 +47,8 @@ local function on_mvps_move(moved_nodes)
|
||||
end
|
||||
|
||||
function mesecon.mvps_process_stack(stack)
|
||||
-- update mesecons for placed nodes ( has to be done after all nodes have been added )
|
||||
for _, n in ipairs(stack) do
|
||||
mesecon.on_placenode(n.pos, minetest.get_node(n.pos))
|
||||
end
|
||||
-- This function is kept for compatibility.
|
||||
-- It used to call on_placenode on the moved nodes, but that is now done automatically.
|
||||
end
|
||||
|
||||
-- tests if the node can be pushed into, e.g. air, water, grass
|
||||
|
Reference in New Issue
Block a user