mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-02-10 23:00:22 +01:00
Improve non-VM swap_node_force
This commit is contained in:
parent
49645b10b5
commit
55cc5076dc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user