LuaSpacePlatform.hub incorrect description.

User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 318
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

LuaSpacePlatform.hub incorrect description.

Post by Osmo »

It currently says:
The hub on this platform. nil if the platform has not had the starter pack applied or hub was destroyed but the platform not yet deleted.

If the hub is destroyed the platform will be deleted at the end of the tick but is otherwise valid to use until that point.
The last line is wrong, as the platform is only deleted if the hub dies. But destroying it is completely fine and is easily done in editor.
The first line is technically correct, but misleading as it implies between starting pack applying and hub dying the hub always exists, which is not true, it can be deleted and created many times in that time. It should probably just say "The hub on this platform, if it exists."
Bilka
Factorio Staff
Factorio Staff
Posts: 3816
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaSpacePlatform.hub incorrect description.

Post by Bilka »

Fixed the docs for the next 2.1 release, thanks for the note.
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 “Resolved Requests”