Page 1 of 1

[0.17.47]Error when using script.on_nth_tick(nil, nil)

Posted: Sun Jun 09, 2019 8:41 am
by Choumiko
To reproduce:

Code: Select all

/c script.on_nth_tick(nil, nil)
According to the documentation passing nil as the first argument should unregister all handlers, but it errors instead with "First argument must be a number or table".
Passing it an empty table does nothing, so currently it's impossible to unset all handlers at once.


current-log

Re: [0.17.47]Error when using script.on_nth_tick(nil, nil)

Posted: Sun Jun 09, 2019 9:08 am
by Bilka
Use /c script.on_nth_tick(nil)