From 61222424ad6aa210fd03f0bbcb8ca3145b6cb9c3 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 9 Nov 2024 10:45:48 +0000 Subject: [PATCH] check for protection_bypass when opening locked doors --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index b5d189f..d8b3417 100644 --- a/init.lua +++ b/init.lua @@ -143,6 +143,10 @@ local can_toggle = function(clicker, pos) local prot = meta:get_string("doors_protected") local pname = clicker:get_player_name() + if minetest.check_player_privs(clicker, "protection_bypass") then + return true + end + -- is door open for all if owner == "" and prot == "" then return true end