Changed casting for timemodifiers

This commit is contained in:
Marco 2025-02-14 13:47:20 +01:00
commit c318bd8c13
7 changed files with 15 additions and 18 deletions

View file

@ -98,8 +98,7 @@ public partial class SpiralPattern : AttackPattern
BulletScene = BulletScene,
RotationOffset = angleOffset,
Modifier = _modifier,
TimeModifiers = ((_timeModifiers?.Where(mod => mod != null)) ?? Array.Empty<TimeModifier>()).Select(m =>
m.Wrap()).ToList()
TimeModifiers = _timeModifiers?.Where(mod => mod != null).ToList() ?? new List<TimeModifier>()
};
}