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
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ protected override IEnumerable<DifficultyHitObject> CreateDifficultyHitObjects(I
// 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.