Fix a breaking build error on HTML5
This commit is contained in:
committed by
Abnormal
parent
3962989f83
commit
9f9af722ca
@@ -246,7 +246,9 @@ class MainMenuState extends MusicBeatState
|
||||
// reset camera when debug menu is closed
|
||||
subStateClosed.add(_ -> resetCamStuff(false));
|
||||
|
||||
subStateOpened.add(sub -> {
|
||||
// TODO: Why does this specific function break with null safety?
|
||||
@:nullSafety(Off)
|
||||
subStateOpened.add((sub:FlxSubState) -> {
|
||||
if (Type.getClass(sub) == FreeplayState)
|
||||
{
|
||||
new FlxTimer().start(0.5, _ -> {
|
||||
|
||||
Reference in New Issue
Block a user