File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
source/SongCore/HarmonyPatches Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,9 @@ private static void Postfix(IReadOnlyList<IDifficultyBeatmapSet> difficultyBeatm
125
125
126
126
if ( detail != null )
127
127
{
128
- Sprite sprite = Utilities . Utils . LoadSpriteFromFile ( Path . Combine ( level . customLevelPath , detail . _characteristicIconFilePath ) ) ?? characteristic . icon ;
128
+ Sprite sprite = characteristic . icon ;
129
+ if ( detail . _characteristicIconFilePath != null )
130
+ sprite = Utilities . Utils . LoadSpriteFromFile ( Path . Combine ( level . customLevelPath , detail . _characteristicIconFilePath ) ) ?? characteristic . icon ;
129
131
string label = detail . _characteristicLabel ?? Polyglot . Localization . Get ( characteristic . descriptionLocalizationKey ) ;
130
132
newDataItems . Add ( new IconSegmentedControl . DataItem ( sprite , label ) ) ;
131
133
}
You can’t perform that action at this time.
0 commit comments