diff --git a/HungerRevamped.cs b/HungerRevamped.cs index 9a4a3eb..a9e2e31 100644 --- a/HungerRevamped.cs +++ b/HungerRevamped.cs @@ -81,7 +81,7 @@ private float ClampCalorieChange(float calorieChange) { private static float ClampCalorieChange(float calorieChange, float hungerCalories, float maxHungerCalories, double storedCalories) { float result = calorieChange; // Clamp by stored calories - result = Mathf.Clamp(result, (float) -storedCalories, (float) (Tuning.maximumStoredCalories - storedCalories)); + result = Mathf.Max(result, (float) -storedCalories); // Clamp by hunger calories result = Mathf.Clamp(result, hungerCalories - maxHungerCalories, hungerCalories); return result;