mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-27 13:28:00 +01:00
Fix display links not working with large stack size inventories
- Fixes #6992
This commit is contained in:
parent
cafd877802
commit
f798321629
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue