Fix display links not working with large stack size inventories

- Fixes #6992
This commit is contained in:
IThundxr 2024-10-11 10:46:33 -04:00
parent cafd877802
commit f798321629
Failed to generate hash of commit

View file

@ -22,7 +22,7 @@ public class CountedItemStackList {
public CountedItemStackList(IItemHandler inventory, FilteringBehaviour filteringBehaviour) {
for (int slot = 0; slot < inventory.getSlots(); slot++) {
ItemStack extractItem = inventory.extractItem(slot, inventory.getSlotLimit(slot), true);
ItemStack extractItem = inventory.getStackInSlot(slot);
if (filteringBehaviour.test(extractItem))
add(extractItem);
}