mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 06:13:17 -04:00
slight efficiency update
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
0ea6580320
commit
6e557edb5e
1 changed files with 2 additions and 1 deletions
|
@ -296,7 +296,8 @@ function default.chest.register_chest(prefixed_name, d)
|
||||||
nodenames = {prefixed_name .. "_open"},
|
nodenames = {prefixed_name .. "_open"},
|
||||||
run_at_every_load = true,
|
run_at_every_load = true,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
minetest.swap_node(pos, {name = prefixed_name, param2 = node.param2})
|
node.name = prefixed_name
|
||||||
|
minetest.swap_node(pos, node)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue