Skip to content

Commit

Permalink
Fix for EMI module crash when a food has a negative nutritional value. (
Browse files Browse the repository at this point in the history
  • Loading branch information
dan2wik authored Jan 9, 2025
1 parent 67b433a commit 6cc0109
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static ItemStackToFluidOptionalItemRecipe getRecipe(ItemStack stack) {
return null;
}
FoodProperties food = stack.getFoodProperties(null);
if (food == null || food.nutrition() == 0) {
if (food == null || food.nutrition() <= 0) {
//If the food provides no healing don't allow consuming it as it won't provide any paste
return null;
}
Expand Down

0 comments on commit 6cc0109

Please sign in to comment.