forked from minetest/minetest_game
Doors: Fix wood/glass doors not opening or closing
Some code was lost during a rebase of a recently merged commit (73e4666
).
This commit is contained in:
parent
d2aae95c39
commit
6a55e150af
@ -550,9 +550,9 @@ function default.can_interact_with_node(player, pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
local owner = meta:get_string("owner")
|
||||||
|
|
||||||
if player:get_player_name() == meta:get_string("owner") then
|
if not owner or owner == "" or owner == player:get_player_name() then
|
||||||
-- Owner can access the node to any time
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user