check for protection_bypass when opening locked doors
This commit is contained in:
parent
add0cd4ab2
commit
61222424ad
4
init.lua
4
init.lua
@ -143,6 +143,10 @@ local can_toggle = function(clicker, pos)
|
||||
local prot = meta:get_string("doors_protected")
|
||||
local pname = clicker:get_player_name()
|
||||
|
||||
if minetest.check_player_privs(clicker, "protection_bypass") then
|
||||
return true
|
||||
end
|
||||
|
||||
-- is door open for all
|
||||
if owner == "" and prot == "" then return true end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user