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_smokedetector/depends.txt | 1 - firealarm_smokedetector/init.lua | 5 ++--- firealarm_smokedetector/mod.conf | 3 +++ 3 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 firealarm_smokedetector/depends.txt create mode 100644 firealarm_smokedetector/mod.conf (limited to 'firealarm_smokedetector') diff --git a/firealarm_smokedetector/depends.txt b/firealarm_smokedetector/depends.txt deleted file mode 100644 index d4798ab..0000000 --- a/firealarm_smokedetector/depends.txt +++ /dev/null @@ -1 +0,0 @@ -firealarm_common diff --git a/firealarm_smokedetector/init.lua b/firealarm_smokedetector/init.lua index db9df1b..dc67a1b 100644 --- a/firealarm_smokedetector/init.lua +++ b/firealarm_smokedetector/init.lua @@ -17,8 +17,7 @@ minetest.register_node(":firealarm:smokedetector_off",{ "firealarm_smokedetector_sides.png", { name = smokeDetectorOffBottomTexture, - animation = - { + animation = { type = "vertical_frames", aspect_w = 32, aspect_h = 32, @@ -40,7 +39,7 @@ minetest.register_node(":firealarm:smokedetector_off",{ {-0.075,0.35,-0.075,0.075,0.4,0.075}, }, }, - on_punch = function(pos,node,player) + on_punch = function(pos,_,player) local name = player:get_player_name() minetest.chat_send_player(name,string.format("Position: %d,%d,%d",pos.x,pos.y,pos.z)) end, diff --git a/firealarm_smokedetector/mod.conf b/firealarm_smokedetector/mod.conf new file mode 100644 index 0000000..88704a0 --- /dev/null +++ b/firealarm_smokedetector/mod.conf @@ -0,0 +1,3 @@ +name = firealarm_smokedetector +depends = firealarm_common +description = Smoke Detector -- cgit v1.2.3