From 6e557edb5e66f76e45b25592247cdc6257622119 Mon Sep 17 00:00:00 2001 From: fluxionary <25628292+fluxionary@users.noreply.github.com> Date: Sat, 29 Oct 2022 11:43:36 -0700 Subject: [PATCH] slight efficiency update Co-authored-by: sfan5 --- mods/default/chests.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/default/chests.lua b/mods/default/chests.lua index 086817cb..e340416f 100644 --- a/mods/default/chests.lua +++ b/mods/default/chests.lua @@ -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