Skip to content

Commit

Permalink
Allow digging of protected doors with "protection_bypass"
Browse files Browse the repository at this point in the history
This was probably lost in either the API rewrite or a merge/rebase.

Fixes #929
  • Loading branch information
sofar authored and paramat committed Mar 18, 2016
1 parent c94349e commit 22e32a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mods/doors/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit 22e32a0

Please sign in to comment.