my idea:
/mods/default/nodes.lua line 640
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local function has_locked_chest_privilege(meta, player)
if player:get_player_name() ~= meta:get_string("owner") then
return false
end
return true
end
change it to something like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local function has_locked_chest_privilege(meta, player)
if ~= meta:get_string("owner") then
return minetest.check_player_privs(player:get_player_name() , {server=true})
end
return true
end
so somebody with the server privilege (the admin) can open and view the chest too
this could be also with the locked door but there its not need because the admin can fly :)