From 8af5d187aa0de5012fe7fa42daf4c8f37954930a Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Sun, 13 Feb 2022 13:57:09 -0500 Subject: [PATCH] Fix warnings --- mesecons/util.lua | 2 +- mesecons_receiver/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecons/util.lua b/mesecons/util.lua index 2fea137..b87dffd 100644 --- a/mesecons/util.lua +++ b/mesecons/util.lua @@ -7,7 +7,7 @@ function mesecon.move_node(pos, newpos) end -- An on_rotate callback for mesecons components. -function mesecon.on_rotate(pos, node, user, mode, new_param2) +function mesecon.on_rotate(pos, node, _, _, new_param2) local new_node = {name = node.name, param1 = node.param1, param2 = new_param2} minetest.swap_node(pos, new_node) mesecon.on_dignode(pos, node) diff --git a/mesecons_receiver/init.lua b/mesecons_receiver/init.lua index 482b350..301dbc4 100644 --- a/mesecons_receiver/init.lua +++ b/mesecons_receiver/init.lua @@ -260,7 +260,7 @@ minetest.register_on_placenode(function (pos, node) end end) -function mesecon.buttonlike_onrotate(pos, node, user, mode, new_param2) +function mesecon.buttonlike_onrotate(pos, node, _, _, new_param2) local new_node = {name = node.name, param1 = node.param1, param2 = new_param2} minetest.swap_node(pos, new_node) mesecon.receiver_remove(pos, node)