Fix autogenerated breaks not invalidating on change to pre-empt time

This commit is contained in:
Bartłomiej Dach 2024-07-23 13:38:50 +02:00
parent c2fa30bf81
commit c3062f96ee
No known key found for this signature in database

View File

@ -45,7 +45,7 @@ namespace osu.Game.Screens.Edit
private void autoGenerateBreaks()
{
var objectDuration = Beatmap.HitObjects.Select(ho => (ho.StartTime, ho.GetEndTime())).ToHashSet();
var objectDuration = Beatmap.HitObjects.Select(ho => (ho.StartTime - ((ho as IHasTimePreempt)?.TimePreempt ?? 0), ho.GetEndTime())).ToHashSet();
if (objectDuration.SetEquals(objectDurationCache))
return;