Move difficulty copy to `BeatmapModelManager.Save`

This commit is contained in:
Dean Herbert 2021-10-07 17:16:44 +09:00
parent ca9c79b758
commit 0df409c050
2 changed files with 2 additions and 2 deletions

View File

@ -192,6 +192,8 @@ public virtual void Save(BeatmapInfo beatmapInfo, IBeatmap beatmapContent, ISkin
{
var setInfo = beatmapInfo.BeatmapSet;
beatmapInfo.BaseDifficulty.CopyFrom(beatmapContent.Difficulty);
using (var stream = new MemoryStream())
{
using (var sw = new StreamWriter(stream, Encoding.UTF8, 1024, true))

View File

@ -332,8 +332,6 @@ protected void Save()
// no longer new after first user-triggered save.
isNewBeatmap = false;
playableBeatmap.BeatmapInfo.BaseDifficulty.CopyFrom(playableBeatmap.Difficulty);
// apply any set-level metadata changes.
beatmapManager.Update(playableBeatmap.BeatmapInfo.BeatmapSet);