EarendelDevelopers / factorio-mods

This is a public repository for tracking issues with Earendel's factorio mods.
18 stars 3 forks source link

Items delivered by bots while in nav sat view don't respect "Always keep players inventory sorted" #214

Closed Cardanis closed 2 years ago

Cardanis commented 2 years ago

If you enter a logistics network and bots start bringing you items, but you then enter nav sat view, when you come back any items delivered to your player will be at the end of your inventory instead of auto sorted. Clicking any of them causes it to auto sort as expected.

tburrows13 commented 2 years ago

And this should be solved by calling https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.sort_and_merge when exiting the navsat, if https://lua-api.factorio.com/latest/LuaPlayer.html#LuaPlayer.auto_sort_main_inventory is true.