From 22e32a01ad583ddd9131fe6994ca21fc4d7fd7bb 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 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