Allow digging of protected doors with "protection_bypass"

This was probably lost in either the API rewrite or a merge/rebase.

Fixes #929
This commit is contained in:
Auke Kok 2016-03-15 22:49:20 -07:00 committed by paramat
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