Check for protection_bypass priv

This commit is contained in:
Carter Kolwey 2016-05-16 13:03:45 -05:00
parent 95c552ad83
commit 4d2efa5960
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ local function on_receive_fields(pos, form_name, fields, sender)
return
end
local name = sender:get_player_name()
if minetest.is_protected(pos, name) then
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