Skip to content

Commit

Permalink
Merge pull request #128 from Kylemc1413/ModdingPink-patch-1
Browse files Browse the repository at this point in the history
OST Boost Colours Being Empty
  • Loading branch information
ModdingPink authored Dec 30, 2023
2 parents 6e77cbb + 454f1aa commit d15f9e3
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 d15f9e3

Please sign in to comment.