Size changing containers in containers can lead to error or invalid pockets #50843
Labels
<Bug>
This needs to be fixed
Items: Containers
Things that hold other things
(S2 - Confirmed)
Bug that's been confirmed to exist
Describe the bug
Basically what was happening with #50512 but with resizing containers. I saw this when filling a condom in my inventory with water, but it probably happens with other containers that can change size. It sometimes throws an error or will just let you have a pocket with too much in it.
The error seems to occur when the newly filled condom is too big for all the combined pockets in the container. If you have spare room in other pockets it, it doesn't error out but drops on a future inventory update. Before the update occurs you can see the pocket is overfilled. So it easiest to create the error using an item with only a single pocket.
Steps To Reproduce
Expected behavior
I expect to be prevented from filling the condom or for the condom to be forced to be removed in the case of the error.
Screenshots
No response
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Bionic Professions [package_bionic_professions]
]
Additional context
No response
The text was updated successfully, but these errors were encountered: