diff options
Diffstat (limited to 'firealarm_pullstation')
-rw-r--r-- | firealarm_pullstation/depends.txt | 1 | ||||
-rw-r--r-- | firealarm_pullstation/init.lua | 5 | ||||
-rw-r--r-- | firealarm_pullstation/mod.conf | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/firealarm_pullstation/depends.txt b/firealarm_pullstation/depends.txt deleted file mode 100644 index d4798ab..0000000 --- a/firealarm_pullstation/depends.txt +++ /dev/null @@ -1 +0,0 @@ -firealarm_common diff --git a/firealarm_pullstation/init.lua b/firealarm_pullstation/init.lua index 88ad7ac..649554b 100644 --- a/firealarm_pullstation/init.lua +++ b/firealarm_pullstation/init.lua @@ -28,7 +28,10 @@ minetest.register_node(":firealarm:pullstation_off",{ 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:get_player_name()) and not minetest.check_player_privs(clicker,"protection_bypass") and not minetest.check_player_privs(clicker,"firealarm") then + if minetest.is_protected(pos,clicker:get_player_name()) + and not minetest.check_player_privs(clicker,"protection_bypass") + and not minetest.check_player_privs(clicker,"firealarm") + then minetest.record_protection_violation(pos,clicker:get_player_name()) return end diff --git a/firealarm_pullstation/mod.conf b/firealarm_pullstation/mod.conf new file mode 100644 index 0000000..e50ebef --- /dev/null +++ b/firealarm_pullstation/mod.conf @@ -0,0 +1,3 @@ +name = firealarm_pullstation +depends = firealarm_common +description = Manual Pull Station |