From: Auke Kok Date: Wed, 16 Mar 2016 05:49:20 +0000 (-0700) Subject: Allow digging of protected doors with "protection_bypass" X-Git-Tag: 0.4.14~86 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=22e32a01ad583ddd9131fe6994ca21fc4d7fd7bb;p=oweals%2Fminetest_game.git Allow digging of protected doors with "protection_bypass" This was probably lost in either the API rewrite or a merge/rebase. Fixes #929 --- diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 431eab3b..dd7ab726 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -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