mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use MaxBy
in all locations that can and update inspection level to match dotnet-build
This commit is contained in:
@ -79,9 +79,7 @@ namespace osu.Game.Rulesets.UI
|
||||
// We need to use lifetime entries to find the next object (we can't just use `hitObjectContainer.Objects` due to pooling - it may even be empty).
|
||||
// If required, we can make this lookup more efficient by adding support to get next-future-entry in LifetimeEntryManager.
|
||||
fallbackObject = hitObjectContainer.Entries
|
||||
.Where(e => e.Result?.HasResult != true)
|
||||
.OrderBy(e => e.HitObject.StartTime)
|
||||
.FirstOrDefault();
|
||||
.Where(e => e.Result?.HasResult != true).MinBy(e => e.HitObject.StartTime);
|
||||
|
||||
// In the case there are no unjudged objects, the last hit object should be used instead.
|
||||
fallbackObject ??= hitObjectContainer.Entries.LastOrDefault();
|
||||
|
Reference in New Issue
Block a user