Skip to content

Commit

Permalink
Doors: Fix wood/glass doors not opening or closing
Browse files Browse the repository at this point in the history
Some code was lost during a rebase of a recently merged commit (73e4666).
  • Loading branch information
Thomas--S authored and paramat committed Mar 19, 2017
1 parent d2aae95 commit 6a55e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/default/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,9 @@ function default.can_interact_with_node(player, pos)
end

local meta = minetest.get_meta(pos)
local owner = meta:get_string("owner")

if player:get_player_name() == meta:get_string("owner") then
-- Owner can access the node to any time
if not owner or owner == "" or owner == player:get_player_name() then
return true
end

Expand Down

0 comments on commit 6a55e15

Please sign in to comment.