File tree 2 files changed +1
-4
lines changed
osu.Game.Tournament/Models
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 2
2
// See the LICENCE file in the repository root for full licence text.
3
3
4
4
using System ;
5
- using osu . Framework . Extensions . ObjectExtensions ;
6
5
using osu . Game . Beatmaps ;
7
6
using osu . Game . Extensions ;
8
7
using osu . Game . Online . API . Requests . Responses ;
@@ -41,7 +40,7 @@ public TournamentBeatmap(APIBeatmap beatmap)
41
40
StarRating = beatmap . StarRating ;
42
41
Metadata = beatmap . Metadata ;
43
42
Difficulty = beatmap . Difficulty ;
44
- Covers = beatmap . BeatmapSet . AsNonNull ( ) . Covers ;
43
+ Covers = beatmap . BeatmapSet ? . Covers ?? new BeatmapSetOnlineCovers ( ) ;
45
44
}
46
45
47
46
public bool Equals ( IBeatmapInfo ? other ) => other is TournamentBeatmap b && this . MatchesOnlineID ( b ) ;
Original file line number Diff line number Diff line change 1
1
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2
2
// See the LICENCE file in the repository root for full licence text.
3
3
4
- #nullable disable
5
-
6
4
using Newtonsoft . Json ;
7
5
8
6
namespace osu . Game . Beatmaps
You can’t perform that action at this time.
0 commit comments