Skip to content

Commit

Permalink
Fix UI Softlock
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Aug 19, 2022
1 parent a98fa73 commit 19a3368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HarmonyPatches/RestoreLevelSelection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void Prefix(ref LevelSelectionFlowCoordinator.State ____startState, bool
if(!Enum.TryParse(Config.Instance.LastCategory, out SelectLevelCategoryViewController.LevelCategory restoreCategory))
restoreCategory = SelectLevelCategoryViewController.LevelCategory.None;

if(!BeatmapLevelsModel_loadedPreviewBeatmapLevels(ref beatmapLevelsModel).TryGetValue(Config.Instance.LastSong, out var m))
if(Config.Instance.LastSong == null || !BeatmapLevelsModel_loadedPreviewBeatmapLevels(ref beatmapLevelsModel).TryGetValue(Config.Instance.LastSong, out var m))
m = null;

PackPreselect.LoadPackFromCollectionName();
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "BetterSongList",
"name": "BetterSongList",
"author": "Kinsi55",
"version": "0.3.2",
"version": "0.3.3",
"description": "Adds Various improvements to the Basegame Map list like Filters, a persisted state and much more",
"gameVersion": "1.20.0",
"dependsOn": {
Expand Down

0 comments on commit 19a3368

Please sign in to comment.