mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Add support for creating new blank difficulties
This commit is contained in:
@ -58,7 +58,16 @@ namespace osu.Game.Database
|
||||
if (existing != null)
|
||||
copyChangesToRealm(beatmap, existing);
|
||||
else
|
||||
d.Beatmaps.Add(beatmap);
|
||||
{
|
||||
var newBeatmap = new BeatmapInfo
|
||||
{
|
||||
ID = beatmap.ID,
|
||||
BeatmapSet = d,
|
||||
Ruleset = d.Realm.Find<RulesetInfo>(beatmap.Ruleset.ShortName)
|
||||
};
|
||||
d.Beatmaps.Add(newBeatmap);
|
||||
copyChangesToRealm(beatmap, newBeatmap);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user