LuaSurface.regenerate_entity optional entities argument

Post Reply
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

LuaSurface.regenerate_entity optional entities argument

Post by Muppet9010 »

https://lua-api.factorio.com/latest/Lua ... ate_entity

At present, there isn't an easy way to regenerate all entities on a list of chunks. There is only an all entities default argument when the chunks argument is also not supplied.

Could an option for passing in an empty placeholder (nil or "" or {}) for the entities argument be added for use with a provided chunk or list of chunks.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaSurface.regenerate_entity optional entities argument

Post by Rseding91 »

Seems reasonable. I think having "nil" mean "auto" would be best since an empty list isn't explicit enough that you want "all" (you could just as easily make a table, then populate it with 'everything that matches X criteria' and have it end up empty).
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”