1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

Always write [HitObjects] to file

I think this is expected. If not, there's an alternative solution.
This commit is contained in:
Dean Herbert 2020-11-08 00:17:23 +09:00
parent c2a5fd2832
commit c5b6908e71

View File

@ -235,11 +235,11 @@ namespace osu.Game.Beatmaps.Formats
private void handleHitObjects(TextWriter writer)
{
writer.WriteLine("[HitObjects]");
if (beatmap.HitObjects.Count == 0)
return;
writer.WriteLine("[HitObjects]");
foreach (var h in beatmap.HitObjects)
handleHitObject(writer, h);
}