Skip to content

Commit

Permalink
fix flashlight breaks bindings having the wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
naoei committed Jul 29, 2024
1 parent f874ee4 commit c71605f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osu.Game.Rulesets.Tau/Mods/TauModFlashlight.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -105,7 +105,7 @@ public virtual void ApplyToDrawableRuleset(DrawableRuleset<T> drawableRuleset)
flashlight.Combo.BindTo(Combo);
drawableRuleset.Overlays.Add(flashlight);

flashlight.Breaks = drawableRuleset.Beatmap.Breaks;
flashlight.Breaks = drawableRuleset.Beatmap.Breaks.ToImmutableList();
}

protected abstract Flashlight CreateFlashlight();
Expand All @@ -120,7 +120,7 @@ public abstract partial class Flashlight : Drawable

public override bool RemoveCompletedTransforms => false;

public List<BreakPeriod> Breaks;
public ImmutableList<BreakPeriod> Breaks;

private readonly BindableDouble defaultFlashlightSize = new(32);
private readonly float sizeMultiplier;
Expand Down

0 comments on commit c71605f

Please sign in to comment.