mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:13:31 +08:00
Move online id null check to only bypass metrics lookup
This commit is contained in:
parent
e5e454ddcd
commit
054db48089
@ -175,7 +175,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
private void updateStatistics()
|
||||
{
|
||||
if (Beatmap?.OnlineBeatmapID == null)
|
||||
if (Beatmap == null)
|
||||
{
|
||||
clearStats();
|
||||
return;
|
||||
@ -188,7 +188,7 @@ namespace osu.Game.Screens.Select
|
||||
tags.Text = Beatmap.Metadata.Tags;
|
||||
|
||||
var requestedBeatmap = Beatmap;
|
||||
if (requestedBeatmap.Metrics == null)
|
||||
if (requestedBeatmap.Metrics == null && requestedBeatmap.OnlineBeatmapID != null)
|
||||
{
|
||||
var lookup = new GetBeatmapDetailsRequest(requestedBeatmap);
|
||||
lookup.Success += res =>
|
||||
|
Loading…
Reference in New Issue
Block a user