Skip to content

Commit

Permalink
disable protection-check on tab-change
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Sep 30, 2023
1 parent cf28c3a commit aaf295c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions controller.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaf295c

Please sign in to comment.