Skip to content

Commit

Permalink
remove deprecation warning on flixel 5.9.0 (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
richTrash21 authored Jul 15, 2024
1 parent 346dd12 commit 0033533
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flixel/addons/transition/FlxTransitionSprite.hx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ class FlxTransitionSprite extends FlxSprite
}

animation.play(anim);
#if (flixel < version("5.9.0"))
animation.finishCallback = onFinishAnim;
#else
if (!animation.onFinish.has(onFinishAnim))
animation.onFinish.add(onFinishAnim);
#end
status = Status;
}

Expand Down

0 comments on commit 0033533

Please sign in to comment.