From f63cbf073ae29e6f3fef4f618d668f8896eef166 Mon Sep 17 00:00:00 2001 From: Hyper_ <40342021+NotHyper-474@users.noreply.github.com> Date: Wed, 23 Jul 2025 12:04:28 -0300 Subject: [PATCH] Restore a lost change from #4787 --- source/funkin/ui/mainmenu/MainMenuState.hx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/funkin/ui/mainmenu/MainMenuState.hx b/source/funkin/ui/mainmenu/MainMenuState.hx index 72bfbb950..1bc3afbec 100644 --- a/source/funkin/ui/mainmenu/MainMenuState.hx +++ b/source/funkin/ui/mainmenu/MainMenuState.hx @@ -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;