[0.11.3][kovarex] luainventory.clear() and circuit network
Posted: Mon Nov 17, 2014 1:54 pm
Someone using my mod encountered an issue that seems to come from the inventory.clear() function used on chests of the type "smart-chest".
While the function clears all items from the inventory, the red network (probably green too) does not show the items missing. I'm unsure whether or not this happens with logistic chests as well.
It's fixed in the mod as I now use .remove(...) (on each item inside) instead of .clear() , but other people might encounter it regardless.
Link to the mod thread with an interesting result: https://forums.factorio.com/forum/vie ... =30#p52629
While the function clears all items from the inventory, the red network (probably green too) does not show the items missing. I'm unsure whether or not this happens with logistic chests as well.
It's fixed in the mod as I now use .remove(...) (on each item inside) instead of .clear() , but other people might encounter it regardless.
Link to the mod thread with an interesting result: https://forums.factorio.com/forum/vie ... =30#p52629