mirror of
https://github.com/osukey/osukey.git
synced 2025-05-25 23:47:30 +09:00
Fix CI issue
This commit is contained in:
parent
492120e88c
commit
8919e98d13
@ -484,19 +484,14 @@ namespace osu.Game.Beatmaps
|
|||||||
metadata = BeatmapDecoder.GetDecoder(stream).Decode(stream).Metadata;
|
metadata = BeatmapDecoder.GetDecoder(stream).Decode(stream).Metadata;
|
||||||
|
|
||||||
// check if a set already exists with the same online id.
|
// check if a set already exists with the same online id.
|
||||||
beatmapSet = beatmaps.BeatmapSets.FirstOrDefault(b => b.OnlineBeatmapSetID == metadata.OnlineBeatmapSetID);
|
beatmapSet = beatmaps.BeatmapSets.FirstOrDefault(b => b.OnlineBeatmapSetID == metadata.OnlineBeatmapSetID) ?? new BeatmapSetInfo
|
||||||
|
|
||||||
if (beatmapSet == null)
|
|
||||||
{
|
{
|
||||||
beatmapSet = new BeatmapSetInfo
|
OnlineBeatmapSetID = metadata.OnlineBeatmapSetID,
|
||||||
{
|
Beatmaps = new List<BeatmapInfo>(),
|
||||||
OnlineBeatmapSetID = metadata.OnlineBeatmapSetID,
|
Hash = hash,
|
||||||
Beatmaps = new List<BeatmapInfo>(),
|
Files = fileInfos,
|
||||||
Hash = hash,
|
Metadata = metadata
|
||||||
Files = fileInfos,
|
};
|
||||||
Metadata = metadata
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
var mapNames = reader.Filenames.Where(f => f.EndsWith(".osu"));
|
var mapNames = reader.Filenames.Where(f => f.EndsWith(".osu"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user