1
0
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:
HoLLy 2019-05-12 22:08:47 +02:00
parent 3981cf55fa
commit cb664dd183

View File

@ -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.