Skip to content
Browse files

Allow digging of protected doors with "protection_bypass"

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 22e32a01ad583ddd9131fe6994ca21fc4d7fd7bb
Showing with 3 additions and 0 deletions.
  1. +3 −0 mods/doors/init.lua
@@ -287,6 +287,9 @@ function doors.register(name, def)
if not def.protected then
return true
if minetest.check_player_privs(digger, "protection_bypass") then
return true
local meta = minetest.get_meta(pos)
local name = ""
if digger then

0 comments on commit 22e32a0

Please sign in to comment.