Skip to content

Commit

Permalink
fix plugin warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Jan 4, 2024
1 parent aad9c35 commit ed36781
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 ed36781

Please sign in to comment.