From ae10d2cf833189cbfb66780401cec0efe83fb6bf Mon Sep 17 00:00:00 2001 From: Meivyn <793322+Meivyn@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:50:13 -0400 Subject: [PATCH 1/3] Deduplicate level authors --- source/SongCore/HarmonyPatches/LevelSelectionPatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SongCore/HarmonyPatches/LevelSelectionPatch.cs b/source/SongCore/HarmonyPatches/LevelSelectionPatch.cs index 040acdc..cb9268d 100644 --- a/source/SongCore/HarmonyPatches/LevelSelectionPatch.cs +++ b/source/SongCore/HarmonyPatches/LevelSelectionPatch.cs @@ -13,7 +13,7 @@ private static void Postfix(LevelListTableCell __instance, BeatmapLevel level) // Rounding BPM display for all maps, including official ones __instance._songBpmText.text = System.Math.Round(level.beatsPerMinute).ToString(CultureInfo.InvariantCulture); - var authors = level.allMappers.Concat(level.allLighters).Join(); + var authors = level.allMappers.Concat(level.allLighters).Distinct().Join(); if (!string.IsNullOrWhiteSpace(authors)) { __instance._songAuthorText.richText = true; From 2e13b77b474907745c3bc0810dade26b2e30b916 Mon Sep 17 00:00:00 2001 From: Meivyn <793322+Meivyn@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:50:54 -0400 Subject: [PATCH 2/3] Fix short pack name string comparison --- .../SongCore/OverrideClasses/SongCoreCustomBeatmapLevelPack.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SongCore/OverrideClasses/SongCoreCustomBeatmapLevelPack.cs b/source/SongCore/OverrideClasses/SongCoreCustomBeatmapLevelPack.cs index 4c59584..c44c08e 100644 --- a/source/SongCore/OverrideClasses/SongCoreCustomBeatmapLevelPack.cs +++ b/source/SongCore/OverrideClasses/SongCoreCustomBeatmapLevelPack.cs @@ -6,7 +6,7 @@ namespace SongCore.OverrideClasses public class SongCoreCustomBeatmapLevelPack : BeatmapLevelPack { public SongCoreCustomBeatmapLevelPack(string packID, string packName, Sprite coverImage, BeatmapLevel[] beatmapLevels, string shortPackName = "") - : base(packID, packName, shortPackName == string.Empty ? packName : shortPackName, coverImage == Loader.defaultCoverImage ? coverImage : Sprite.Create(coverImage.texture, coverImage.rect, coverImage.pivot, coverImage.texture.width), coverImage, beatmapLevels, PlayerSensitivityFlag.Safe) + : base(packID, packName, shortPackName.Length == 0 ? packName : shortPackName, coverImage == Loader.defaultCoverImage ? coverImage : Sprite.Create(coverImage.texture, coverImage.rect, coverImage.pivot, coverImage.texture.width), coverImage, beatmapLevels, PlayerSensitivityFlag.Safe) { } From 8616bb30c42cc305a9ff63208cfedde43a357cfb Mon Sep 17 00:00:00 2001 From: Meivyn <793322+Meivyn@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:51:02 -0400 Subject: [PATCH 3/3] Bump version --- source/SongCore/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SongCore/manifest.json b/source/SongCore/manifest.json index 95758f5..813366c 100644 --- a/source/SongCore/manifest.json +++ b/source/SongCore/manifest.json @@ -5,7 +5,7 @@ "gameVersion": "1.36.0", "id": "SongCore", "name": "SongCore", - "version": "3.14.0", + "version": "3.14.1", "dependsOn": { "BSIPA": "^4.3.0", "BeatSaberMarkupLanguage": "^1.7.6",