LuaSurface::create_entity missing variant parameter for loader types

User avatar
_CodeGreen
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Sat Mar 05, 2022 11:30 am
Contact:

LuaSurface::create_entity missing variant parameter for loader types

Post by _CodeGreen »

LuaSurface::create_entity allows the use of the `type` field for use with underground belts, and that is listed.
However, you can set "input" and "output" on loaders as well, and this isn't listed on the method doc.
I assume this is not intentional, and I'm glad I guessed that it worked and found out, but others may not be as lucky.
My Mods | If you can't make it perfect, make it adjustable
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaSurface::create_entity missing variant parameter for loader types

Post by Bilka »

Thank you for pointing this out. It also accepts the filter parameter in the same format as inserters. Added to the docs for the next doc release.
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”