Fixed bug where oredict autocrafting didn't work

This commit is contained in:
raoulvdberge
2017-06-14 16:08:24 +02:00
parent 401fb0c0eb
commit 32b3575a0e
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
- Removed MCMultiPart support (will be re-added as soon as MCMultiPart for MC 1.12 is available) (raoulvdberge)
- Removed OpenComputers support (will be re-added as soon as OpenComputers for MC 1.12 is available) (raoulvdberge)
- The Portable Grid now doesn't despawn anymore when dropped in the world (raoulvdberge)
- Fixed bug where oredict autocrafting didn't work (way2muchnoise)
### 1.4.15
- Updated Storage Drawers API, fixes crashes (raoulvdberge)

View File

@@ -138,7 +138,7 @@ public class CraftingTask implements ICraftingTask {
extraStack = toInsert.get(input, compare);
networkStack = networkList.get(input, compare);
}
while (extraStack == null && networkStack == null && ++i < inputs.size() && network.getCraftingManager().hasPattern(input, compare));
while (extraStack == null && networkStack == null && ++i < inputs.size() && network.getCraftingManager().getPatterns(input, compare).isEmpty());
if (i == inputs.size()) {
input = inputs.get(0).copy();
}