Restore a lost change from #4787

This commit is contained in:
Hyper_
2025-08-02 10:55:58 +03:00
committed by Mihai Alexandru
parent 30721c3a30
commit f63cbf073a
+1 -3
View File
@@ -268,10 +268,8 @@ class MainMenuState extends MusicBeatState
// reset camera when debug menu is closed
subStateClosed.add(_ -> resetCamStuff(false));
// TODO: Why does this specific function break with null safety?
@:nullSafety(Off)
subStateOpened.add((sub:FlxSubState) -> {
if (Type.getClass(sub) == FreeplayState)
if (Std.isOfType(sub, FreeplayState))
{
new FlxTimer().start(0.5, _ -> {
magenta.visible = false;