Skip to content

Commit

Permalink
Fix display links not working with large stack size inventories
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 11, 2024
1 parent cafd877 commit f798321
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 f798321

Please sign in to comment.