Fix working beatmaps not seeing new difficulties after add

This commit is contained in:
Bartłomiej Dach 2022-01-23 18:56:19 +01:00
parent 0d51c015ad
commit 54bb6ad40c
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ public WorkingBeatmap CreateNewBlankDifficulty(BeatmapSetInfo beatmapSetInfo, Ru
newBeatmap.ControlPointInfo.Add(timingPoint.Time, timingPoint.DeepClone());
var createdBeatmapInfo = beatmapModelManager.AddDifficultyToBeatmapSet(beatmapSetInfo, newBeatmap);
workingBeatmapCache.Invalidate(createdBeatmapInfo.BeatmapSet);
return GetWorkingBeatmap(createdBeatmapInfo);
}