Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
LarryFrosty committed Sep 24, 2024
1 parent d6e1884 commit 9246a69
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3099,6 +3099,12 @@ class PlayState extends MusicBeatState
}

override function destroy() {
if (psychlua.CustomSubstate.instance != null)
{
closeSubState();
resetSubState();
}

#if LUA_ALLOWED
for (lua in luaArray)
{
Expand All @@ -3121,12 +3127,6 @@ class PlayState extends MusicBeatState
#end
stagesFunc(function(stage:BaseStage) stage.destroy());

if (psychlua.CustomSubstate.instance != null)
{
closeSubState();
resetSubState();
}

FlxG.stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPress);
FlxG.stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyRelease);

Expand Down

0 comments on commit 9246a69

Please sign in to comment.