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/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'firealarm_smokedetector/init.lua') 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, -- cgit v1.2.3