LuaItemStack::set_mapper() needs optional parameter

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

LuaItemStack::set_mapper() needs optional parameter

Post by _CodeGreen »

LuaItemStack::set_mapper() has an UpgradeFilter parameter that says it can be nil to remove a filter in the description, but isn't marked as optional in the actual documentation. This trickles down to a LuaLS warning, either missing-parameter or param-type-mismatch.
My Mods | If you can't make it perfect, make it adjustable

Bilka
Factorio Staff
Factorio Staff
Posts: 3157
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaItemStack::set_mapper() needs optional parameter

Post by Bilka »

Thanks for noting this, fixed for the next release (1.1.102). Same fix was done for the filter in LuaItemStack:set_tile_filter().
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”