[1.1.80] find_empty_stack() used on player's inventory can return the (unwritable) slot reserved for the "hand" icon

This subforum contains all the issues which we already resolved.
KingIonTrueLove
Inserter
Inserter
Posts: 24
Joined: Sun Jun 04, 2017 1:38 am
Contact:

[1.1.80] find_empty_stack() used on player's inventory can return the (unwritable) slot reserved for the "hand" icon

Post by KingIonTrueLove »

While trying to find an empty stack in a player's inventory to manipulate, I would use find_empty_stack() in the hopes of getting an empty inventory slot that was valid for write.

but, if the player is holding something, this will very likely return the index of the "hand" icon. This should be practically guaranteed to happen if the players inventory autosorts.

this is an issue because the slot with the hand icon, while technically counting as 'empty' is quite unusable for any case when you would want an empty slot, as you can not write to it.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.80] find_empty_stack() used on player's inventory can return the (unwritable) slot reserved for the "hand" icon

Post by Rseding91 »

Thanks for the report. This is now fixed for the next 1.1. release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”