1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 17:43:12 +08:00

Fix CI errors

This commit is contained in:
PercyDan54 2021-04-18 10:00:17 +08:00
parent 1339c126a4
commit 646403b826
No known key found for this signature in database
GPG Key ID: 6AEA7C525131BAF3
2 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ namespace osu.Game.Beatmaps
public RomanisableString ToRomanisableString() public RomanisableString ToRomanisableString()
{ {
var metadata = (Metadata ?? BeatmapSet?.Metadata).ToRomanisableString() ?? new RomanisableString(null, null); var metadata = (Metadata ?? BeatmapSet?.Metadata)?.ToRomanisableString() ?? new RomanisableString(null, null);
return new RomanisableString($"{metadata.GetPreferred(true)} {VersionString}".Trim(), $"{metadata.GetPreferred(false)} {VersionString}".Trim()); return new RomanisableString($"{metadata.GetPreferred(true)} {VersionString}".Trim(), $"{metadata.GetPreferred(false)} {VersionString}".Trim());
} }

View File

@ -109,8 +109,8 @@ namespace osu.Game.Screens.OnlinePlay
difficultyIconContainer.Child = new DifficultyIcon(beatmap.Value, ruleset.Value, requiredMods) { Size = new Vector2(32) }; difficultyIconContainer.Child = new DifficultyIcon(beatmap.Value, ruleset.Value, requiredMods) { Size = new Vector2(32) };
beatmapText.Clear(); beatmapText.Clear();
beatmapText.AddLink(new List<SpriteText>{ new OsuSpriteText { Text = Item.Beatmap.Value.ToRomanisableString() } } beatmapText.AddLink(new List<SpriteText> { new OsuSpriteText { Text = Item.Beatmap.Value.ToRomanisableString() } },
, LinkAction.OpenBeatmap, Item.Beatmap.Value.OnlineBeatmapID.ToString()); LinkAction.OpenBeatmap, Item.Beatmap.Value.OnlineBeatmapID.ToString());
authorText.Clear(); authorText.Clear();