Skip to content

Commit

Permalink
fix: Fix possible crash when testing heavy sieve recipes #345
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Jun 30, 2024
1 parent 20164d3 commit 4b55ad3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private static boolean testRecipe(SieveMeshRegistryEntry mesh, ItemStack itemSta

if (recipe.getMinimumMesh() != null) {
SieveMeshRegistryEntry minimumMesh = SieveMeshRegistry.getEntry(recipe.getMinimumMesh());
if (mesh.getMeshLevel() < minimumMesh.getMeshLevel()) {
if (minimumMesh != null && mesh.getMeshLevel() < minimumMesh.getMeshLevel()) {
return false;
}
}
Expand Down

0 comments on commit 4b55ad3

Please sign in to comment.