Skip to content

Commit

Permalink
Localise "node"
Browse files Browse the repository at this point in the history
  • Loading branch information
HybridDog committed Oct 17, 2020
1 parent baefd45 commit f34f3b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down Expand Up @@ -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, {
Expand Down

0 comments on commit f34f3b7

Please sign in to comment.