Fixed issue where the Crafter Manager can crash on invalid patterns. Fixes #2723

This commit is contained in:
raoulvdberge
2020-11-11 19:06:10 +01:00
parent b97e2bb835
commit 1ddda1f640
2 changed files with 10 additions and 7 deletions

View File

@@ -3,7 +3,8 @@
### 1.9.9
- Fixed Refined Storage sidebuttons displaying over the JEI bookmark pagination buttons (raoulvdberge)
- Fixed Issue where Crafters may fail to recognize an inventory/tank for some Patterns (Darkere)
- Fixed issue where Crafters may fail to recognize an inventory/tank for some patterns (Darkere)
- Fixed issue where the Crafter Manager can crash on invalid patterns (raoulvdberge)
### 1.9.8

View File

@@ -120,13 +120,15 @@ public class CrafterManagerContainer extends BaseContainer {
visible = false;
for (ItemStack output : pattern.getOutputs()) {
ItemGridStack outputConverted = new ItemGridStack(output);
if (pattern.isValid()) {
for (ItemStack output : pattern.getOutputs()) {
ItemGridStack outputConverted = new ItemGridStack(output);
for (Predicate<IGridStack> filter : filters) {
if (filter.test(outputConverted)) {
visible = true;
break;
for (Predicate<IGridStack> filter : filters) {
if (filter.test(outputConverted)) {
visible = true;
break;
}
}
}
}