
Withdrawn items should come from the smallest stacks.
Nixill opened this issue ยท 0 comments
When withdrawing items through a Terminal or Item Hopper, the smallest stacks should be used first. This prioritizes freeing up inventory slots as much as possible.
To demonstrate what I mean, you can:
- Start a creative world
- Place a chest and connect a simple terminal to it
- Add 96 dirt to the chest through the terminal
- Inspect the chest. You will see that it has 64 dirt and 32 dirt.
- Using the terminal, withdraw half a stack of dirt.
- Inspect the chest again. You will see that it has 32 dirt and 32 dirt.
Despite now holding exactly one stack of dirt, and nothing else, the chest has 2 slots filled out of 27, 25 free.
If the withdrawl would take from the smallest stacks first, the chest would have one stack of 64 and 26 slots free.