From 454f1aaa9fd40beeabd84d247387754490f83d40 Mon Sep 17 00:00:00 2001 From: Pink <62712899+ModdingPink@users.noreply.github.com> Date: Sat, 30 Dec 2023 00:08:23 +0000 Subject: [PATCH] OST Boost Colours Being Empty --- .../SongCore/HarmonyPatches/CustomSongColorsPatch.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/SongCore/HarmonyPatches/CustomSongColorsPatch.cs b/source/SongCore/HarmonyPatches/CustomSongColorsPatch.cs index 57d1d3b..5531e8d 100644 --- a/source/SongCore/HarmonyPatches/CustomSongColorsPatch.cs +++ b/source/SongCore/HarmonyPatches/CustomSongColorsPatch.cs @@ -49,6 +49,18 @@ private static IEnumerable TargetMethods() private static void Prefix(ref IDifficultyBeatmap difficultyBeatmap, ref ColorScheme? overrideColorScheme) { + if(overrideColorScheme != null) + { + if(overrideColorScheme._environmentColor0Boost.a == 0) + { + overrideColorScheme._environmentColor0Boost = overrideColorScheme._environmentColor0; + } + if (overrideColorScheme._environmentColor1Boost.a == 0) + { + overrideColorScheme._environmentColor1Boost = overrideColorScheme._environmentColor1; + } + } + if (difficultyBeatmap == null || !Plugin.Configuration.CustomSongNoteColors && !Plugin.Configuration.CustomSongEnvironmentColors && !Plugin.Configuration.CustomSongObstacleColors) { return;