Skip to content

Commit

Permalink
Fix invalid pattern outputs throwing NPE in crafting grid (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
GlodBlock authored Feb 1, 2024
1 parent 88635d9 commit 0fffc82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/appeng/me/cache/CraftingGridCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ private void recalculateCraftingPatterns() {
// new craftables!
for (final ICraftingPatternDetails details : this.craftingMethods.keySet()) {
for (IAEItemStack out : details.getOutputs()) {
if (out == null) {
continue;
}
out = out.copy();
out.reset();
out.setCraftable(true);
Expand Down

0 comments on commit 0fffc82

Please sign in to comment.