Skip to content

Commit

Permalink
OST Boost Colours Being Empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ModdingPink authored Dec 30, 2023
1 parent 6e77cbb commit 454f1aa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/SongCore/HarmonyPatches/CustomSongColorsPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ private static IEnumerable<MethodBase> 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;
Expand Down

0 comments on commit 454f1aa

Please sign in to comment.