Skip to content

Commit cc663b3

Browse files
Open Pause Substate on Focus Lost
1 parent 9610863 commit cc663b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/funkin/game/PlayState.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,8 @@ class PlayState extends MusicBeatState
11231123
scripts.call("onFocusLost");
11241124
updateDiscordPresence();
11251125
super.onFocusLost();
1126+
1127+
openSubState(new PauseSubState());
11261128
}
11271129

11281130
@:dox(hide)

0 commit comments

Comments
 (0)