Corrige assignation de variable globale vers locale

This commit is contained in:
sys4-fr 2019-02-03 15:07:22 +01:00
parent 6a9f308529
commit 7f5b39c673
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni

Vedi File

@ -499,7 +499,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, {