From 4c593efb32971b76044c3c27acd6695f95075fed Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 15 Oct 2024 14:54:55 +0100 Subject: [PATCH] Don't perform adjustments on empty food components. squeek502/AppleSkin#331 --- .../unicopia/item/component/TransientComponentMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/item/component/TransientComponentMap.java b/src/main/java/com/minelittlepony/unicopia/item/component/TransientComponentMap.java index 0ae133f9..a4f59b57 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/component/TransientComponentMap.java +++ b/src/main/java/com/minelittlepony/unicopia/item/component/TransientComponentMap.java @@ -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); }