check for protection_bypass when opening locked doors

This commit is contained in:
tenplus1 2024-11-09 10:45:48 +00:00
parent add0cd4ab2
commit 61222424ad

View File

@ -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