Page 1 of 1

LuaItemStack::set_mapper() needs optional parameter

Posted: Thu Dec 28, 2023 6:33 am
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.

Re: LuaItemStack::set_mapper() needs optional parameter

Posted: Thu Dec 28, 2023 5:46 pm
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().