Skip to content

Commit

Permalink
Fix NPE with matchItem (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored Sep 28, 2022
1 parent a52b5b5 commit d0be7d5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public void loadUsageRecipes(ItemStack ingredient) {
}

private boolean matchItem(ItemStack compared, ItemStack compareTo) {
if (compared == null || compareTo == null) return false;
if (NEIServerUtils.areStacksSameTypeCrafting(compared, compareTo)) {
return true;
}
Expand Down

0 comments on commit d0be7d5

Please sign in to comment.