[1.1.30] Player inventory is not resorted when script sets `spidertron_remote.connected_entity`

Bugs that are actually features.
Xorimuth
Filter Inserter
Filter Inserter
Posts: 731
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

[1.1.30] Player inventory is not resorted when script sets `spidertron_remote.connected_entity`

Post by Xorimuth »

In the player's inventory connected remotes are always sorted before unconnected remotes. When a script sets `LuaItemStack::connected_entity` it does not trigger a sort so the remote may be amongst unconnected remotes until it is picked up and put back in the inventory.
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5414
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [1.1.30] Player inventory is not resorted when script sets `spidertron_remote.connected_entity`

Post by Klonan »

You can call the sort inventory yourself, I don't consider this to be a bug
Post Reply

Return to “Not a bug”