mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 09:42:54 +08:00
Handle logged out user
This commit is contained in:
parent
74daf85e48
commit
0b52080a52
@ -55,6 +55,9 @@ namespace osu.Game.Online
|
|||||||
{
|
{
|
||||||
statisticsCache.Clear();
|
statisticsCache.Clear();
|
||||||
|
|
||||||
|
if (api.LocalUser.Value == null || api.LocalUser.Value.Id <= 1)
|
||||||
|
return;
|
||||||
|
|
||||||
foreach (var ruleset in rulesets.AvailableRulesets.Where(r => r.IsLegacyRuleset()))
|
foreach (var ruleset in rulesets.AvailableRulesets.Where(r => r.IsLegacyRuleset()))
|
||||||
RefetchStatistics(ruleset);
|
RefetchStatistics(ruleset);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user