From c71605fd42712e17b8922b21b74a46dd273b0961 Mon Sep 17 00:00:00 2001 From: Nora Date: Sun, 28 Jul 2024 21:44:39 -0400 Subject: [PATCH] fix flashlight breaks bindings having the wrong type --- osu.Game.Rulesets.Tau/Mods/TauModFlashlight.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osu.Game.Rulesets.Tau/Mods/TauModFlashlight.cs b/osu.Game.Rulesets.Tau/Mods/TauModFlashlight.cs index 7eb7f45b..b6ee9823 100644 --- a/osu.Game.Rulesets.Tau/Mods/TauModFlashlight.cs +++ b/osu.Game.Rulesets.Tau/Mods/TauModFlashlight.cs @@ -1,5 +1,5 @@ using System; -using System.Collections.Generic; +using System.Collections.Immutable; using System.Runtime.InteropServices; using JetBrains.Annotations; using osu.Framework.Allocation; @@ -105,7 +105,7 @@ public virtual void ApplyToDrawableRuleset(DrawableRuleset drawableRuleset) flashlight.Combo.BindTo(Combo); drawableRuleset.Overlays.Add(flashlight); - flashlight.Breaks = drawableRuleset.Beatmap.Breaks; + flashlight.Breaks = drawableRuleset.Beatmap.Breaks.ToImmutableList(); } protected abstract Flashlight CreateFlashlight(); @@ -120,7 +120,7 @@ public abstract partial class Flashlight : Drawable public override bool RemoveCompletedTransforms => false; - public List Breaks; + public ImmutableList Breaks; private readonly BindableDouble defaultFlashlightSize = new(32); private readonly float sizeMultiplier;