diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/animations/Animation.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/animations/Animation.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/animations/Animation.java b/src/main/java/cc/polyfrost/oneconfig/gui/animations/Animation.java index 30fcc4e..77556b5 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/animations/Animation.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/animations/Animation.java @@ -33,7 +33,7 @@ public abstract class Animation { */ public float get(float deltaTime) { timePassed += deltaTime; - if (timePassed >= duration) timePassed = duration; + if (timePassed >= duration) return start + change; return animate(timePassed / duration) * change + start; } |