Skip to content

Commit

Permalink
Fixed "star triangle disappears when a duplicate map is selected"
Browse files Browse the repository at this point in the history
  • Loading branch information
NSGolova committed Jul 16, 2024
1 parent 36ac654 commit ab00aeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/2_Core/Models/LeaderboardKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public static LeaderboardKey FromSongDiff(SongInfo song, DiffInfo diff) {

public static LeaderboardKey FromBeatmap(BeatmapKey beatmapKey) {
var hash = beatmapKey.levelId.Replace(CustomLevelLoader.kCustomLevelPrefixId, "");
if (hash.Length > 40) {
hash = hash.Substring(0, 40);
}
var diff = beatmapKey.difficulty.ToString();
var mode = beatmapKey.beatmapCharacteristic.serializedName;
return new LeaderboardKey(hash, diff, mode);
Expand Down

0 comments on commit ab00aeb

Please sign in to comment.