From f34f3b7724a352cd6f0eac24c114314dd040acac Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 18 Oct 2020 00:00:25 +0200 Subject: [PATCH] Localise "node" --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index c9b05db..607560f 100644 --- a/init.lua +++ b/init.lua @@ -531,7 +531,7 @@ connected_chests.register_chest("default:chest", { -- TODO: test for invalid param2 values local x, z = unpack(param_tab2[left_param2]) local pos_right = {x=pos.x-x, y=pos.y, z=pos.z-z} - node = minetest.get_node(pos_right) + local node = minetest.get_node(pos_right) if node.name == "default:chest_connected_right" and not chest_lid_obstructed(pos_right) then minetest.swap_node(pos, { @@ -579,7 +579,7 @@ connected_chests.register_chest("default:chest_locked", { -- TODO: test for invalid param2 values local x, z = unpack(param_tab2[left_param2]) local pos_right = {x=pos.x-x, y=pos.y, z=pos.z-z} - node = minetest.get_node(pos_right) + local node = minetest.get_node(pos_right) if node.name == "default:chest_locked_connected_right" and not chest_lid_obstructed(pos_right) then minetest.swap_node(pos_right, {