From 70ab3cd06da8e8211536963e08680b664965335a Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 14 Sep 2024 17:42:44 -0500 Subject: Add luacheck configuration, migrate depends.txt to mod.conf, and some assorted cleanup --- firealarm_pullstation/depends.txt | 1 - firealarm_pullstation/init.lua | 5 ++++- firealarm_pullstation/mod.conf | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 firealarm_pullstation/depends.txt create mode 100644 firealarm_pullstation/mod.conf (limited to 'firealarm_pullstation') 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 -- cgit v1.2.3