diff options
Diffstat (limited to 'firealarm_pullstation')
-rw-r--r-- | firealarm_pullstation/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firealarm_pullstation/init.lua b/firealarm_pullstation/init.lua index daca96a..c533997 100644 --- a/firealarm_pullstation/init.lua +++ b/firealarm_pullstation/init.lua @@ -71,8 +71,8 @@ minetest.register_node(":firealarm:pullstation_on",{ end, on_rightclick = function(pos,node,clicker) if minetest.is_protected(pos,clicker) and not minetest.check_player_privs(clicker,"protection_bypass") then - minetest.record_protection_violation(pos,minetest.get_player_name(clicker)) - minetest.chat_send_player(name,"You are not authorized to reset this pull station") + 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 end local devInfo = firealarm.getDevInfo("signaling",pos) |