[0.18.X] LuaGuiElement.index: misleading API documentation.

This subforum contains all the issues which we already resolved.
Creidhne
Inserter
Inserter
Posts: 28
Joined: Mon Jun 10, 2019 9:43 am
Contact:

[0.18.X] LuaGuiElement.index: misleading API documentation.

Post by Creidhne »

Hi,
In the API documentation, LuaGuiElement.index is said to be unique.

While it appears to be unique in single player, it seems that in multiplayer two different players can have different buttons sharing the same ID.

Suggestion:

Code: Select all

The unique index of this GUI element. ----> Index of this GUI element (unique amongst the GUI elements of a LuaPlayer).
Rseding91
Factorio Staff
Factorio Staff
Posts: 14339
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.X] LuaGuiElement.index: misleading API documentation.

Post by Rseding91 »

Thanks for the report, I changed it for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”