diff options
author | cheapie <no-email-for-you@example.com> | 2018-09-23 15:02:46 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2018-09-23 15:02:46 -0500 |
commit | 9681340cc287aae926570df617dd891808350548 (patch) | |
tree | 29558a3906f60cb0656172bef14977a0c1a76343 | |
parent | d38c1aba8845dab560a7d3aeaebc4970b6e79030 (diff) | |
download | firealarm-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.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 |