1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-26 18:21:04 +00:00

Give more infos to on_timer() callback

closes #15817
This commit is contained in:
sfan5 2025-08-10 17:22:06 +02:00
parent 7c88996210
commit fd3588d49c
8 changed files with 31 additions and 21 deletions

View file

@ -43,8 +43,9 @@ core.register_node("callbacks:callback_node", {
print_to_everything("callbacks:callback_node:after_dig_node("..core.pos_to_string(pos)..")")
end,
on_timer = function(pos, elapsed)
print_to_everything("callbacks:callback_node:on_timer(): elapsed="..dump(elapsed))
on_timer = function(pos, elapsed, node, timeout)
print_to_everything("callbacks:callback_node:on_timer(): elapsed="..
elapsed .. " node=" .. dump(node) .. " timeout=" .. timeout)
return true
end,
})