mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Change OfType<> to Cast<> to be more clear
This commit is contained in:
parent
3981cf55fa
commit
cb664dd183
@ -60,7 +60,7 @@ namespace osu.Game.Rulesets.Catch.Difficulty
|
||||
// In 2B beatmaps, it is possible that a normal Fruit is placed in the middle of a JuiceStream.
|
||||
foreach (var hitObject in beatmap.HitObjects
|
||||
.SelectMany(obj => obj is JuiceStream stream ? stream.NestedHitObjects : new[] { obj })
|
||||
.OfType<CatchHitObject>()
|
||||
.Cast<CatchHitObject>()
|
||||
.OrderBy(x => x.StartTime))
|
||||
{
|
||||
// We want to only consider fruits that contribute to the combo.
|
||||
|
Loading…
Reference in New Issue
Block a user