mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 15:45:10 +00:00
Fixed animations not transitioning correctly when updating from a looping animation.
This commit is contained in:
1 parent
963393b7fe
commit
a07a33c068
2 files changed
+6
-3
No files matched your search
@@ -251,7 +251,7 @@ public class Animation implements IAnimation {
|
||||
}
|
||||
|
||||
this.currentFrameTime++;
|
||||
if (this.currentFrameTime == this.currentFrame().getDuration()) {
|
||||
if (this.currentFrame() != null && this.currentFrameTime == this.currentFrame().getDuration()) {
|
||||
EventHooks.onAnimationFrameExited(this, this.currentFrame());
|
||||
|
||||
Frame prevFrame = (Frame) this.currentFrame();
|
||||
|
||||
Reference in new issue
Block a user