Merge pull request #15776 from peppy/non-null-beatmapset-metadata

Make `BeatmapSet.Metadata` non-null
This commit is contained in:
Dan Balasescu
2021-11-24 16:48:28 +09:00
committed by GitHub
5 changed files with 11 additions and 11 deletions

View File

@ -94,7 +94,7 @@ namespace osu.Game.Beatmaps
#region Implementation of IBeatmapSetInfo
IBeatmapMetadataInfo IBeatmapSetInfo.Metadata => Metadata;
IBeatmapMetadataInfo IBeatmapSetInfo.Metadata => Metadata ?? Beatmaps.FirstOrDefault()?.Metadata ?? new BeatmapMetadata();
IEnumerable<IBeatmapInfo> IBeatmapSetInfo.Beatmaps => Beatmaps;
IEnumerable<INamedFileUsage> IBeatmapSetInfo.Files => Files;