Fix timed spells' timers not displaying correctly

This commit is contained in:
Sollace 2024-01-22 13:17:45 +00:00
parent 9510b83c72
commit 134db120cd
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -29,7 +29,7 @@ public interface TimedSpell extends Spell {
}
public float getPercentTimeRemaining(float tickDelta) {
return MathHelper.lerp(tickDelta, prevDuration, duration) / maxDuration;
return MathHelper.lerp(tickDelta, prevDuration, duration) / (float)maxDuration;
}
public int getTicksRemaining() {