new schedule.add_record should return the index of the new record

User avatar
EvilPLa
Inserter
Inserter
Posts: 26
Joined: Sat Nov 14, 2020 7:26 am
Contact:

new schedule.add_record should return the index of the new record

Post by EvilPLa »

TL;DR
The new

Code: Select all

schedule.add_record()
should return the index of the new record. Unlike in the ui you don't acually see where the record is located. Temp records go in the current position, but the "current" value gets changed.
It would just make sense to return the index of the new record.

The docs should als mention that this new record comes already with the default wait condition for the type
Wise men speak because they have something to say Fools because they have to say something. (Plato)
Rseding91
Factorio Staff
Factorio Staff
Posts: 15007
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: new schedule.add_record should return the index of the new record

Post by Rseding91 »

Ok
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”