Skip to content

Commit

Permalink
fix plugin warnings (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli authored Jan 4, 2024
1 parent fd53663 commit 535a78e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flixel/addons/nape/FlxNapeSpace.hx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ class FlxNapeSpace extends FlxBasic
*/
public static function init():Void
{
#if (flixel < "5.6.0")
FlxG.plugins.add(new FlxNapeSpace());
#else
FlxG.plugins.addPlugin(new FlxNapeSpace());
#end

if (space == null)
space = new Space(new Vec2());
Expand Down

0 comments on commit 535a78e

Please sign in to comment.