From aaf295cd7b2739d9dcb2da38dcb7d0831e734f9b Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sat, 30 Sep 2023 21:11:17 +0200 Subject: [PATCH] disable protection-check on tab-change --- controller.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/controller.lua b/controller.lua index 9577455..b75236a 100644 --- a/controller.lua +++ b/controller.lua @@ -839,11 +839,6 @@ end local function on_receive_fields(pos, _, fields, sender) local meta = minetest.get_meta(pos) if fields.tab then - local name = sender:get_player_name() - if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then - minetest.record_protection_violation(pos, name) - return - end meta:set_int("tab",fields.tab) update_formspec(pos) else