鏡像自
https://github.com/luanti-org/minetest_game.git
已同步 2025-11-05 01:35:28 +01:00
Doors: Fix wood/glass doors not opening or closing
Some code was lost during a rebase of a recently merged commit (73e4666).
此提交包含在:
@@ -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
|
||||
|
||||
|
||||
新增問題並參考
封鎖使用者