slight efficiency update

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
fluxionary 2022-10-29 11:43:36 -07:00 committed by GitHub
parent 0ea6580320
commit 6e557edb5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -296,7 +296,8 @@ function default.chest.register_chest(prefixed_name, d)
nodenames = {prefixed_name .. "_open"},
run_at_every_load = true,
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