From 2cf0802c2902334fe596a8d69e26c0f48b9a869a Mon Sep 17 00:00:00 2001 From: "HRK.EXEX" <74143200+HRK-EXEX@users.noreply.github.com> Date: Sat, 28 Dec 2024 08:35:55 +0900 Subject: [PATCH] fixed healthBar won't work when turned off overHealth option --- source/states/PlayState.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/states/PlayState.hx b/source/states/PlayState.hx index 5a93b8b3..e7c657c6 100644 --- a/source/states/PlayState.hx +++ b/source/states/PlayState.hx @@ -2394,7 +2394,8 @@ Average NPS in loading: ${numFormat(notes / takenNoteTime, 3)}'); updateIconsPosition(); updateScoreText(); - if (overHealth) if (healthBar.bounds.max != null && health > healthBar.bounds.max) + if (!overHealth) healthLerp = healthLerper(); + else if (healthBar.bounds.max != null && health > healthBar.bounds.max) health = healthBar.bounds.max; // Shader Update Zone