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

Bugs that are actually features.
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

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

Post 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
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post by Bilka »

Use /c script.on_nth_tick(nil)
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Not a bug”