Skip to content

Commit

Permalink
Fix display links not working with large stack size inventories (#7055)
Browse files Browse the repository at this point in the history
- Fixes #6992
  • Loading branch information
IThundxr authored Feb 14, 2025
1 parent 7a0ebd9 commit 7294ba9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7294ba9

Please sign in to comment.