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,6 +120,7 @@ public class CrafterManagerContainer extends BaseContainer {
|
|||||||
|
|
||||||
visible = false;
|
visible = false;
|
||||||
|
|
||||||
|
if (pattern.isValid()) {
|
||||||
for (ItemStack output : pattern.getOutputs()) {
|
for (ItemStack output : pattern.getOutputs()) {
|
||||||
ItemGridStack outputConverted = new ItemGridStack(output);
|
ItemGridStack outputConverted = new ItemGridStack(output);
|
||||||
|
|
||||||
@@ -132,6 +133,7 @@ public class CrafterManagerContainer extends BaseContainer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
addSlot(new CrafterManagerSlot(dummy, slot, x, y, visible, screenInfoProvider, crafterManager));
|
addSlot(new CrafterManagerSlot(dummy, slot, x, y, visible, screenInfoProvider, crafterManager));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user