diff --git a/src/library/java/gg/generations/rarecandy/renderer/animation/Animation.java b/src/library/java/gg/generations/rarecandy/renderer/animation/Animation.java index f0170f16..8a0d7c9a 100644 --- a/src/library/java/gg/generations/rarecandy/renderer/animation/Animation.java +++ b/src/library/java/gg/generations/rarecandy/renderer/animation/Animation.java @@ -79,8 +79,11 @@ private double findLastKeyTime() { var duration = 0d; for (var value : this.animationNodes) { - if (value != null) + if (value != null) { for (var key : value.positionKeys) duration = Math.max(key.time(), duration); + for (var key : value.rotationKeys) duration = Math.max(key.time(), duration); + for (var key : value.scaleKeys) duration = Math.max(key.time(), duration); + } } return duration;