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
|
||||
|
||||
- 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
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user