Skip to content

Commit

Permalink
fixed healthBar won't work when turned off overHealth option
Browse files Browse the repository at this point in the history
  • Loading branch information
HRK-EXEX committed Dec 27, 2024
1 parent 4572901 commit 2cf0802
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cf0802

Please sign in to comment.