1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

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 @@ namespace osu.Game.Beatmaps
{
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 @@ namespace osu.Game.Screens.Edit
// 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);