mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 23:47:38 +01:00
Smarter funnel extraction
- Funnels will no longer deadlock their extraction size if the first item of an inventory has a low max stack size but can't even be extracted because of filtering. - fixes #2919
This commit is contained in:
parent
657f42c67a
commit
f8180ee91d
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ public class ItemHelper {
|
||||||
for (int slot = 0; slot < inv.getSlots(); slot++) {
|
for (int slot = 0; slot < inv.getSlots(); slot++) {
|
||||||
if (extracting.isEmpty()) {
|
if (extracting.isEmpty()) {
|
||||||
ItemStack stackInSlot = inv.getStackInSlot(slot);
|
ItemStack stackInSlot = inv.getStackInSlot(slot);
|
||||||
if (stackInSlot.isEmpty())
|
if (stackInSlot.isEmpty() || !test.test(stackInSlot))
|
||||||
continue;
|
continue;
|
||||||
int maxExtractionCountForItem = amountFunction.apply(stackInSlot);
|
int maxExtractionCountForItem = amountFunction.apply(stackInSlot);
|
||||||
if (maxExtractionCountForItem == 0)
|
if (maxExtractionCountForItem == 0)
|
||||||
|
|
Loading…
Reference in a new issue