diff --git a/source/PlayState.hx b/source/PlayState.hx index 806f80a..a6e084c 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1110,7 +1110,9 @@ class PlayState extends MusicBeatState var luaWiggles:Array = []; + #if windows public static var luaModchart:ModchartState = null; + #end function startCountdown():Void { @@ -1808,11 +1810,13 @@ class PlayState extends MusicBeatState if (FlxG.keys.justPressed.EIGHT) { FlxG.switchState(new AnimationDebug(SONG.player2)); + #if windows if (luaModchart != null) { luaModchart.die(); luaModchart = null; } + #end } #end