From a5ba20c365cdb4139d743d31b03ffda1a548324c Mon Sep 17 00:00:00 2001 From: KIT! Date: Fri, 9 Aug 2024 16:42:28 +0200 Subject: [PATCH] Fixed achievement panel not working properly with OniUra Displaying the OniUra scores for a player that had 0 Ura scores would no longer display Oni scores. --- TaikoWebUI/Pages/Profile.razor.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/TaikoWebUI/Pages/Profile.razor.cs b/TaikoWebUI/Pages/Profile.razor.cs index 93697c0..f27a956 100644 --- a/TaikoWebUI/Pages/Profile.razor.cs +++ b/TaikoWebUI/Pages/Profile.razor.cs @@ -386,7 +386,15 @@ public partial class Profile if (difficulty == Difficulty.None) difficulty = highestDifficulty; - if (!songBestDataMap.TryGetValue(difficulty, out var values)) return; + if (!songBestDataMap.TryGetValue(difficulty, out var values)) + { + if (difficulty == Difficulty.UraOni) + { + difficulty = Difficulty.Oni; + if (!songBestDataMap.TryGetValue(difficulty, out values)) return; + } + else return; + } var valuesList = new List(values);