LuaItemStack::set_mapper() needs optional parameter
- _CodeGreen
- Long Handed Inserter
- Posts: 72
- Joined: Sat Mar 05, 2022 11:30 am
- Contact:
LuaItemStack::set_mapper() needs optional parameter
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
Re: LuaItemStack::set_mapper() needs optional parameter
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.