mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 23:59:16 +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.
|
// In 2B beatmaps, it is possible that a normal Fruit is placed in the middle of a JuiceStream.
|
||||||
foreach (var hitObject in beatmap.HitObjects
|
foreach (var hitObject in beatmap.HitObjects
|
||||||
.SelectMany(obj => obj is JuiceStream stream ? stream.NestedHitObjects : new[] { obj })
|
.SelectMany(obj => obj is JuiceStream stream ? stream.NestedHitObjects : new[] { obj })
|
||||||
.OfType<CatchHitObject>()
|
.Cast<CatchHitObject>()
|
||||||
.OrderBy(x => x.StartTime))
|
.OrderBy(x => x.StartTime))
|
||||||
{
|
{
|
||||||
// We want to only consider fruits that contribute to the combo.
|
// We want to only consider fruits that contribute to the combo.
|
||||||
|
Loading…
Reference in New Issue
Block a user