From ed5f7e5353a77d05203a596cb0c3bee4380fd237 Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Wed, 6 Dec 2017 16:28:34 +0900 Subject: [PATCH] Make OsuJsonDecoder apply defaults similar to OsuLegacyDecoder --- osu.Game/Beatmaps/Formats/OsuJsonDecoder.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Beatmaps/Formats/OsuJsonDecoder.cs b/osu.Game/Beatmaps/Formats/OsuJsonDecoder.cs index 392f1b4890..ed4b8f3857 100644 --- a/osu.Game/Beatmaps/Formats/OsuJsonDecoder.cs +++ b/osu.Game/Beatmaps/Formats/OsuJsonDecoder.cs @@ -20,6 +20,9 @@ namespace osu.Game.Beatmaps.Formats string fullText = stream.ReadToEnd(); fullText.DeserializeInto(beatmap); + + foreach (var hitObject in beatmap.HitObjects) + hitObject.ApplyDefaults(beatmap.ControlPointInfo, beatmap.BeatmapInfo.BaseDifficulty); } } }