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:
parent
45382a8127
commit
21c0882b74
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user