Skip to content

Commit

Permalink
Fix exception when recipeholder doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardCM committed Jun 19, 2024
1 parent d5dc35b commit 912105c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void workbenchClose(InventoryCloseEvent e) {
if (!CmdRecipe.this.tasks.containsKey(p.getName())) return;
if (!(e.getView().getTitle().startsWith("Recipe:"))) return;
final RecipeHolder rh = (RecipeHolder) e.getInventory().getHolder();
if (rh.isClosing()) return;
if (rh != null && rh.isClosing()) return;
CmdRecipe.this.cancelTask(p);
}
}
Expand Down

0 comments on commit 912105c

Please sign in to comment.