mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Make OsuJsonDecoder apply defaults similar to OsuLegacyDecoder
This commit is contained in:
@ -20,6 +20,9 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
string fullText = stream.ReadToEnd();
|
string fullText = stream.ReadToEnd();
|
||||||
fullText.DeserializeInto(beatmap);
|
fullText.DeserializeInto(beatmap);
|
||||||
|
|
||||||
|
foreach (var hitObject in beatmap.HitObjects)
|
||||||
|
hitObject.ApplyDefaults(beatmap.ControlPointInfo, beatmap.BeatmapInfo.BaseDifficulty);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user