Allow digging of protected doors with "protection_bypass"
This was probably lost in either the API rewrite or a merge/rebase. Fixes #929master
parent
c94349eaef
commit
22e32a01ad
|
@ -287,6 +287,9 @@ function doors.register(name, def)
|
|||
if not def.protected then
|
||||
return true
|
||||
end
|
||||
if minetest.check_player_privs(digger, "protection_bypass") then
|
||||
return true
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
local name = ""
|
||||
if digger then
|
||||
|
|
Loading…
Reference in New Issue