Re: Fast reading for inventory slots
Posted: Wed Feb 12, 2020 2:26 pm
Wow. Thanks. Now i have an excuse to further delay updating that mod until next Factorio update.
Wow. Thanks. Now i have an excuse to further delay updating that mod until next Factorio update.
Lua just sucks. It's never going to be fast.Honktown wrote: Wed Apr 22, 2020 12:26 am Bumping since this idea/request is still related:
A way to get an array of LuaSimpleItemStacks from an inventory. Constant Combinators for example have ConstantCombinatorParameters, which returns a table of signal, count, and index. For an inventory there's no similar table (item, count, and index) but it would be a lot lighter than providing a full LuaItemStack for every slot.