mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 18:47:27 +08:00
Mark Converts
as nullable
This commit is contained in:
parent
e7ab543799
commit
85c1932851
@ -126,7 +126,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
public APIBeatmap[] Beatmaps { get; set; } = Array.Empty<APIBeatmap>();
|
public APIBeatmap[] Beatmaps { get; set; } = Array.Empty<APIBeatmap>();
|
||||||
|
|
||||||
[JsonProperty(@"converts")]
|
[JsonProperty(@"converts")]
|
||||||
public APIBeatmap[] Converts { get; set; } = Array.Empty<APIBeatmap>();
|
public APIBeatmap[]? Converts { get; set; }
|
||||||
|
|
||||||
private BeatmapMetadata metadata => new BeatmapMetadata
|
private BeatmapMetadata metadata => new BeatmapMetadata
|
||||||
{
|
{
|
||||||
|
@ -168,7 +168,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
|
|
||||||
if (BeatmapSet != null)
|
if (BeatmapSet != null)
|
||||||
{
|
{
|
||||||
Difficulties.ChildrenEnumerable = BeatmapSet.Beatmaps.Concat(BeatmapSet.Converts)
|
Difficulties.ChildrenEnumerable = BeatmapSet.Beatmaps.Concat(BeatmapSet.Converts ?? Array.Empty<APIBeatmap>())
|
||||||
.Where(b => b.Ruleset.MatchesOnlineID(ruleset.Value))
|
.Where(b => b.Ruleset.MatchesOnlineID(ruleset.Value))
|
||||||
.OrderBy(b => !b.Convert)
|
.OrderBy(b => !b.Convert)
|
||||||
.ThenBy(b => b.StarRating)
|
.ThenBy(b => b.StarRating)
|
||||||
|
Loading…
Reference in New Issue
Block a user