Fix invalid pattern outputs throwing NPE in crafting grid (#393)
This commit is contained in:
@@ -221,6 +221,9 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
|
|||||||
// new craftables!
|
// new craftables!
|
||||||
for (final ICraftingPatternDetails details : this.craftingMethods.keySet()) {
|
for (final ICraftingPatternDetails details : this.craftingMethods.keySet()) {
|
||||||
for (IAEItemStack out : details.getOutputs()) {
|
for (IAEItemStack out : details.getOutputs()) {
|
||||||
|
if (out == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
out = out.copy();
|
out = out.copy();
|
||||||
out.reset();
|
out.reset();
|
||||||
out.setCraftable(true);
|
out.setCraftable(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user