Skip to content

Commit 4c593ef

Browse files
committed
Don't perform adjustments on empty food components. squeek502/AppleSkin#331
1 parent ae4a09a commit 4c593ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/minelittlepony/unicopia/item/component/TransientComponentMap.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class TransientComponentMap {
3535
return originalFood;
3636
}
3737

38-
if (originalFood != null) {
38+
if (originalFood != null && (originalFood.nutrition() > 0 || originalFood.saturation() > 0)) {
3939
return diet.getAdjustedFoodComponent(s, originalFood);
4040
}
4141

0 commit comments

Comments
 (0)