mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-02-05 04:30:16 +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
|
||||
-- This serves to both ensure the mapblock is loaded and also hand us
|
||||
-- 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
|
||||
minetest.swap_node(pos, node)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user