Add surface_index and force_index

Post Reply
ILLISIS
Burner Inserter
Burner Inserter
Posts: 19
Joined: Wed Feb 09, 2022 10:49 am
Contact:

Add surface_index and force_index

Post by ILLISIS »

Hello

Requesting entity.surface_index and entity.force_index to be added instead of localizing entity.surface.index etc all the time.

Klonan was part of the discord discussion and originally had this idea.
https://discord.com/channels/1396775903 ... 8678309939

thanks!

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Add surface_index and force_index

Post by Klonan »

I have added it for the next release,

It results in a nice potential performance gain:
factorio-run_a7LdbbEbzD.png
factorio-run_a7LdbbEbzD.png (123.7 KiB) Viewed 670 times

Post Reply

Return to “Implemented mod requests”