From 9681340cc287aae926570df617dd891808350548 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 23 Sep 2018 15:02:46 -0500 Subject: Fix yet another protection issue --- firealarm_pullstation/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firealarm_pullstation/init.lua b/firealarm_pullstation/init.lua index 40adf24..d91f730 100644 --- a/firealarm_pullstation/init.lua +++ b/firealarm_pullstation/init.lua @@ -70,7 +70,7 @@ minetest.register_node(":firealarm:pullstation_on",{ minetest.chat_send_player(name,string.format("Position: %d,%d,%d",pos.x,pos.y,pos.z)) end, on_rightclick = function(pos,node,clicker) - if minetest.is_protected(pos,clicker) and not minetest.check_player_privs(clicker,"protection_bypass") then + if minetest.is_protected(pos,clicker:get_player_name()) and not minetest.check_player_privs(clicker,"protection_bypass") then minetest.record_protection_violation(pos,clicker:get_player_name()) minetest.chat_send_player(clicker:get_player_name(),"You are not authorized to reset this pull station") return -- cgit v1.2.3