Skip to content

Commit

Permalink
Fix animation restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
iam4722202468 committed Mar 10, 2023
1 parent 774d03c commit 2fc622d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ public void playRepeat(String animation) {

@Override
public void playRepeat(String animation, AnimationDirection direction) {
if (this.repeating.containsKey(this.animationPriorities().get(animation))
&& this.direction.get(animation) == direction) return;

this.direction.put(animation, direction);

this.repeating.put(this.animationPriorities().get(animation), animation);
var top = this.repeating.firstEntry();

Expand Down

0 comments on commit 2fc622d

Please sign in to comment.