Skip to content

Commit

Permalink
Update AnimationController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
0xE69 committed Apr 3, 2024
1 parent a8d9c84 commit 6bc51ca
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ public void tick() {
}

public void apply(float partialTicks, PoseStack poseStack) {
for (var animation : this.animations) {
var iterator = this.animations.iterator();
while (iterator.hasNext()) {
var animation = iterator.next();
if (animation.isAlive()) {
animation.apply(partialTicks, poseStack);
} else {
iterator.remove();
}
}
}
Expand Down

0 comments on commit 6bc51ca

Please sign in to comment.