Check count as well (statistics can be populated with zero counts)

This commit is contained in:
Dean Herbert 2021-07-04 16:41:09 +09:00
parent ef82528309
commit 7a710ceffe

View File

@ -146,7 +146,7 @@ namespace osu.Game.Screens.Play
return scoreSubmissionSource.Task;
// if the user never hit anything, this score should not be counted in any way.
if (!score.ScoreInfo.Statistics.Any(s => s.Key.IsHit()))
if (!score.ScoreInfo.Statistics.Any(s => s.Key.IsHit() && s.Value > 0))
return Task.CompletedTask;
scoreSubmissionSource = new TaskCompletionSource<bool>();