SoundPrototype docs wrong

Zancmok
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Dec 19, 2023 3:14 pm
Contact:

SoundPrototype docs wrong

Post by Zancmok »

I found that the type of the SoundPrototype's variations property has its type wrongly defined. It is defined as array[SoundDefinition] while it apperently is PtreeItemOrArrayIterator.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3103
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: SoundPrototype docs wrong

Post by boskid »

Proposed version makes no sense. It is a helper for handling $union(X, $array(X)) but PreeItemOrArrayIterator is not a lua concrpt that can be exposed.
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: SoundPrototype docs wrong

Post by Bilka »

Request was understood anyway. Doc fixed to be "SoundDefinition or array[SoundDefinition]" for the next doc release, thank you for making the post.
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”