Fix warnings

This commit is contained in:
Jude Melton-Houghton 2022-02-13 13:57:09 -05:00
parent fb342ad196
commit 8af5d187aa
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)