1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Don't serialize FL rating without FL mod

This commit is contained in:
Dan Balasescu 2021-11-15 17:24:53 +09:00
parent 45382a8127
commit 21c0882b74

View File

@ -3,6 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using Newtonsoft.Json;
using osu.Game.Rulesets.Difficulty;
using osu.Game.Rulesets.Mods;
@ -74,5 +75,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty
HitCircleCount = hitCircleCount;
SpinnerCount = spinnerCount;
}
[UsedImplicitly]
public bool ShouldSerializeFlashlightRating() => Mods.OfType<ModFlashlight>().Any();
}
}