Fix crash in chart editor minimal Playtest

This commit is contained in:
EliteMasterEric 2024-02-12 23:19:25 -05:00
parent 31e80381bb
commit 0494ddb506
2 changed files with 2 additions and 8 deletions

View file

@ -1976,7 +1976,7 @@ class PlayState extends MusicBeatSubState
// Mute vocals and play miss animation, but don't penalize. // Mute vocals and play miss animation, but don't penalize.
vocals.playerVolume = 0; vocals.playerVolume = 0;
currentStage.getBoyfriend().playSingAnimation(holdNote.noteData.getDirection(), true); if (currentStage != null && currentStage.getBoyfriend() != null) currentStage.getBoyfriend().playSingAnimation(holdNote.noteData.getDirection(), true);
} }
} }
} }

View file

@ -747,13 +747,7 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
} }
} }
public function onUpdate(event:UpdateScriptEvent) public function onUpdate(event:UpdateScriptEvent) {}
{
if (FlxG.keys.justPressed.F3)
{
debugIconGroup.visible = !debugIconGroup.visible;
}
}
public override function kill() public override function kill()
{ {