summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2018-08-27 04:53:32 -0500
committercheapie <no-email-for-you@example.com>2018-08-27 04:53:32 -0500
commit1ccedfc92c99c1759b32df04ee7afb3225bcdcff (patch)
tree76795bbe632ebabcefba3d3c65ba27ec4377516c
parent869c82fb25ce9885b61e2128846902a932982b92 (diff)
downloadfirealarm-1ccedfc92c99c1759b32df04ee7afb3225bcdcff.tar
firealarm-1ccedfc92c99c1759b32df04ee7afb3225bcdcff.tar.gz
firealarm-1ccedfc92c99c1759b32df04ee7afb3225bcdcff.tar.bz2
firealarm-1ccedfc92c99c1759b32df04ee7afb3225bcdcff.tar.xz
firealarm-1ccedfc92c99c1759b32df04ee7afb3225bcdcff.zip
Fix crash, for real this time
-rw-r--r--firealarm_pullstation/init.lua4
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)