diff options
Diffstat (limited to 'firealarm_pullstation')
-rw-r--r-- | firealarm_pullstation/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |