summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2018-09-23 15:02:46 -0500
committercheapie <no-email-for-you@example.com>2018-09-23 15:02:46 -0500
commit9681340cc287aae926570df617dd891808350548 (patch)
tree29558a3906f60cb0656172bef14977a0c1a76343
parentd38c1aba8845dab560a7d3aeaebc4970b6e79030 (diff)
downloadfirealarm-9681340cc287aae926570df617dd891808350548.tar
firealarm-9681340cc287aae926570df617dd891808350548.tar.gz
firealarm-9681340cc287aae926570df617dd891808350548.tar.bz2
firealarm-9681340cc287aae926570df617dd891808350548.tar.xz
firealarm-9681340cc287aae926570df617dd891808350548.zip
Fix yet another protection issue
-rw-r--r--firealarm_pullstation/init.lua2
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