mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +01:00
Fix timed spells' timers not displaying correctly
This commit is contained in:
parent
9510b83c72
commit
134db120cd
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue