Don't perform adjustments on empty food components. squeek502/AppleSkin#331

This commit is contained in:
Sollace 2024-10-15 14:54:55 +01:00
parent ae4a09ad28
commit 4c593efb32
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -35,7 +35,7 @@ public class TransientComponentMap {
return originalFood;
}
if (originalFood != null) {
if (originalFood != null && (originalFood.nutrition() > 0 || originalFood.saturation() > 0)) {
return diet.getAdjustedFoodComponent(s, originalFood);
}