1
0
mirror of https://github.com/HybridDog/connected_chests.git synced 2025-07-16 23:20:23 +02:00

2 Commits

Author SHA1 Message Date
53d2009680 Merge branch 'master' into nalc-1.2 2019-05-06 01:11:32 +02:00
7f5b39c673 Corrige assignation de variable globale vers locale 2019-02-03 15:07:22 +01:00

View File

@ -531,7 +531,7 @@ connected_chests.register_chest("default:chest", {
-- TODO: test for invalid param2 values -- TODO: test for invalid param2 values
local x, z = unpack(param_tab2[left_param2]) local x, z = unpack(param_tab2[left_param2])
local pos_right = {x=pos.x-x, y=pos.y, z=pos.z-z} 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" if node.name == "default:chest_connected_right"
and not chest_lid_obstructed(pos_right) then and not chest_lid_obstructed(pos_right) then
minetest.swap_node(pos, { minetest.swap_node(pos, {