mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Shorten code
This commit is contained in:
@ -63,13 +63,10 @@ namespace osu.Game.Rulesets.Osu.UI
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Objects.Any())
|
||||
{
|
||||
var first = (OsuHitObject)Objects.First();
|
||||
if (Objects.FirstOrDefault() is OsuHitObject first)
|
||||
return first.StartTime - Math.Max(2000, first.TimePreempt);
|
||||
}
|
||||
|
||||
return 0;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user