mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Invert condition
This commit is contained in:
@ -225,21 +225,21 @@ namespace osu.Game.Tournament
|
|||||||
{
|
{
|
||||||
foreach (var b in r.Beatmaps.ToList())
|
foreach (var b in r.Beatmaps.ToList())
|
||||||
{
|
{
|
||||||
if (b.BeatmapInfo == null)
|
if (b.BeatmapInfo != null)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (b.ID > 0)
|
||||||
{
|
{
|
||||||
if (b.ID > 0)
|
var req = new GetBeatmapRequest(new BeatmapInfo { OnlineBeatmapID = b.ID });
|
||||||
{
|
API.Perform(req);
|
||||||
var req = new GetBeatmapRequest(new BeatmapInfo { OnlineBeatmapID = b.ID });
|
b.BeatmapInfo = req.Result?.ToBeatmap(RulesetStore);
|
||||||
API.Perform(req);
|
|
||||||
b.BeatmapInfo = req.Result?.ToBeatmap(RulesetStore);
|
|
||||||
|
|
||||||
addedInfo = true;
|
addedInfo = true;
|
||||||
}
|
|
||||||
|
|
||||||
if (b.BeatmapInfo == null)
|
|
||||||
// if online population couldn't be performed, ensure we don't leave a null value behind
|
|
||||||
r.Beatmaps.Remove(b);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (b.BeatmapInfo == null)
|
||||||
|
// if online population couldn't be performed, ensure we don't leave a null value behind
|
||||||
|
r.Beatmaps.Remove(b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user