diff options
author | cheapie <no-email-for-you@example.com> | 2024-09-14 17:42:44 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-09-14 17:42:44 -0500 |
commit | 70ab3cd06da8e8211536963e08680b664965335a (patch) | |
tree | b0ccaee94b9397a2e3dd9baebc1972fbf8c66350 /firealarm_smokedetector | |
parent | 4d417ddcb2be62e568ae3f11c58bcb156d5d6a35 (diff) | |
download | firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar.gz firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar.bz2 firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar.xz firealarm-70ab3cd06da8e8211536963e08680b664965335a.zip |
Add luacheck configuration, migrate depends.txt to mod.conf, and some assorted cleanup
Diffstat (limited to 'firealarm_smokedetector')
-rw-r--r-- | firealarm_smokedetector/depends.txt | 1 | ||||
-rw-r--r-- | firealarm_smokedetector/init.lua | 5 | ||||
-rw-r--r-- | firealarm_smokedetector/mod.conf | 3 |
3 files changed, 5 insertions, 4 deletions
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 |