1
0
mirror of synced 2025-01-19 00:04:05 +01:00

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.
This commit is contained in:
Farewell_ 2024-08-09 16:42:28 +02:00
parent ce3795bb50
commit a5ba20c365

View File

@ -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<SongBestData>(values);