mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-11-12 21:30:29 +01:00
Don't record a protection violation when players aren't allowed to modify a node (#78)
This commit is contained in:
parent
fa4f7a949c
commit
722ff851dd
|
@ -185,7 +185,6 @@ minetest.register_node("digilines:chest", {
|
|||
on_receive_fields = function(pos, _, fields, sender)
|
||||
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
|
||||
if fields.channel ~= nil then
|
||||
|
|
1
lcd.lua
1
lcd.lua
|
@ -310,7 +310,6 @@ minetest.register_node("digilines:lcd", {
|
|||
on_receive_fields = function(pos, _, fields, sender)
|
||||
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
|
||||
if (fields.channel) then
|
||||
|
|
|
@ -55,7 +55,6 @@ minetest.register_node("digilines:lightsensor", {
|
|||
on_receive_fields = function(pos, _, fields, sender)
|
||||
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
|
||||
if (fields.channel) then
|
||||
|
|
1
rtc.lua
1
rtc.lua
|
@ -51,7 +51,6 @@ minetest.register_node("digilines:rtc", {
|
|||
on_receive_fields = function(pos, _, fields, sender)
|
||||
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
|
||||
if (fields.channel) then
|
||||
|
|
Loading…
Reference in New Issue
Block a user