Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 71c6bc7

Browse files
committed
im stupid :3
1 parent cf47600 commit 71c6bc7

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

source/backend/MusicBeatState.hx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package backend;
22

33
import flixel.FlxState;
44
import backend.PsychCamera;
5+
import states.CustomStageError;
56

67
class MusicBeatState extends FlxState
78
{
@@ -213,15 +214,8 @@ class MusicBeatState extends FlxState
213214
catch (e:haxe.Exception)
214215
{
215216
trace('[CustomStage API ERROR] ' + e);
216-
MusicBeatState.switchState(new CustomStageError(
217-
"Failed to load custom stage: " + nextStateName +
218-
"Please check the stage name and ensure it exists." +
219-
"Error: " + e.message +
220-
"Stack Trace: " + e.toString() +
221-
"Please report this issue to the developers.",
222-
function() reload(),
223-
function() Game.restartGame()
224-
));
217+
trace('Some is something wrong, try switching to MainMenuState');
218+
MusicBeatState.switchCustomStage("MainMenuState");
225219
}
226220
}
227221
public static function resetState()

0 commit comments

Comments
 (0)