Fix display links not working with large stack size inventories (#7055)

- Fixes #6992
This commit is contained in:
IThundxr 2025-02-14 05:12:09 -05:00 committed by GitHub
parent 7a0ebd96d1
commit 7294ba9e22
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);
}