mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-16 07:10:32 +01:00
Fix warnings
This commit is contained in:
parent
fb342ad196
commit
8af5d187aa
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user