1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 10:43:04 +08:00

Enable NRT on Beatmap

This commit is contained in:
Dean Herbert 2023-11-23 17:28:16 +09:00
parent a80a5be4ec
commit 268b965ee8
No known key found for this signature in database

View File

@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
#nullable disable
using System; using System;
using osu.Game.Beatmaps.Timing; using osu.Game.Beatmaps.Timing;
using osu.Game.Rulesets.Objects; using osu.Game.Rulesets.Objects;
@ -26,8 +24,7 @@ namespace osu.Game.Beatmaps
{ {
difficulty = value; difficulty = value;
if (beatmapInfo != null) beatmapInfo.Difficulty = difficulty.Clone();
beatmapInfo.Difficulty = difficulty.Clone();
} }
} }
@ -40,8 +37,7 @@ namespace osu.Game.Beatmaps
{ {
beatmapInfo = value; beatmapInfo = value;
if (beatmapInfo?.Difficulty != null) Difficulty = beatmapInfo.Difficulty.Clone();
Difficulty = beatmapInfo.Difficulty.Clone();
} }
} }