Fixed issue where the Crafter Manager can crash on invalid patterns. Fixes #2723
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
### 1.9.9
|
### 1.9.9
|
||||||
|
|
||||||
- Fixed Refined Storage sidebuttons displaying over the JEI bookmark pagination buttons (raoulvdberge)
|
- 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
|
### 1.9.8
|
||||||
|
|
||||||
|
|||||||
@@ -120,13 +120,15 @@ public class CrafterManagerContainer extends BaseContainer {
|
|||||||
|
|
||||||
visible = false;
|
visible = false;
|
||||||
|
|
||||||
for (ItemStack output : pattern.getOutputs()) {
|
if (pattern.isValid()) {
|
||||||
ItemGridStack outputConverted = new ItemGridStack(output);
|
for (ItemStack output : pattern.getOutputs()) {
|
||||||
|
ItemGridStack outputConverted = new ItemGridStack(output);
|
||||||
|
|
||||||
for (Predicate<IGridStack> filter : filters) {
|
for (Predicate<IGridStack> filter : filters) {
|
||||||
if (filter.test(outputConverted)) {
|
if (filter.test(outputConverted)) {
|
||||||
visible = true;
|
visible = true;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user