Skip to content

Commit 22e32a0

Browse files
sofarparamat
authored andcommittedMar 18, 2016
Allow digging of protected doors with "protection_bypass"
This was probably lost in either the API rewrite or a merge/rebase. Fixes #929
1 parent c94349e commit 22e32a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎mods/doors/init.lua

+3
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ function doors.register(name, def)
287287
if not def.protected then
288288
return true
289289
end
290+
if minetest.check_player_privs(digger, "protection_bypass") then
291+
return true
292+
end
290293
local meta = minetest.get_meta(pos)
291294
local name = ""
292295
if digger then

0 commit comments

Comments
 (0)
Please sign in to comment.