From e788c19e8bb42d30135059e9313c9e2353904638 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Tue, 15 Mar 2016 22:49:20 -0700 Subject: [PATCH] Allow digging of protected doors with "protection_bypass" This was probably lost in either the API rewrite or a merge/rebase. Fixes #929 --- mods/doors/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 9300e6ff..8924e487 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