Improve non-VM swap_node_force

This commit is contained in:
Jude Melton-Houghton 2022-05-29 19:21:36 -04:00
parent 49645b10b5
commit 55cc5076dc

View File

@ -483,7 +483,7 @@ function mesecon.swap_node_force(pos, name, update_light)
else else
-- This serves to both ensure the mapblock is loaded and also hand us -- This serves to both ensure the mapblock is loaded and also hand us
-- the old node table so we can preserve param2. -- the old node table so we can preserve param2.
local node = mesecon.get_node_force(pos) local node = get_node_load(pos)
node.name = name node.name = name
minetest.swap_node(pos, node) minetest.swap_node(pos, node)
end end