Teminals use max stack size instead of current stack size
ArsiTheFox opened this issue ยท 4 comments
Issue type:
- ๐ Bug
Short description:
There is a failure to calculate correct inventory fullness because it looks like it checks for max stacksize instead of current max stacksize. In recent updates the max stacksize was set to 99 (If u set it via a Item Component).
This means that when calculating the max size of items it uses 99 instead:
Give item stack that shows correct amount if chest is filled with:
/give @s minecraft:wheat_seeds[minecraft:max_stack_size=99]
Steps to reproduce the problem:
- Place Chest
- Place Item Interface on-top
- Place Logic Cable
- Place Storage Terminal on that
- Fill Chest to the brim with items
- Check Storage Terminal fill amount and see the fill size is incorrect
Expected behaviour:
The fill amount showing correctly calculated
Versions:
- This mod: 1.6.10
- Minecraft: 1.21.1
- Mod loader version: NeoForge 21.1.133
Log file:
but when you fill the inventory it should show ass full not showing a number that is way above that limit....
I understand the confusion, but this is actually working as intended.
The max storage size is the theoretical upper limit, and is calculated using the getMaxStackSize methods in all connected storages. Since these are hardcoded to return 99 in chests, that's what Integrated Terminals will display.
This max storage size will not change based on different item contents, only when different storages are connected.






