fix with new event

This commit is contained in:
OliBomby
2022-09-13 02:20:52 +02:00
parent a1f4724685
commit fd48249eef
2 changed files with 10 additions and 4 deletions

View File

@ -24,11 +24,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
{
base.LoadComplete();
editorBeatmap.HitObjectUpdated += hitObjectUpdated;
editorBeatmap.SelectionBlueprintsShouldBeSorted += SortInternal;
}
private void hitObjectUpdated(HitObject _) => SortInternal();
public override void Add(SelectionBlueprint<HitObject> drawable)
{
SortInternal();
@ -72,7 +70,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
base.Dispose(isDisposing);
if (editorBeatmap != null)
editorBeatmap.HitObjectUpdated -= hitObjectUpdated;
editorBeatmap.SelectionBlueprintsShouldBeSorted -= SortInternal;
}
}
}