mirror of https://github.com/ppy/osu
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 @@ public override void FromDatabase(IReadOnlyDictionary<int, double> values, int h
|
|||
HitCircleCount = hitCircleCount;
|
||||
SpinnerCount = spinnerCount;
|
||||
}
|
||||
|
||||
[UsedImplicitly]
|
||||
public bool ShouldSerializeFlashlightRating() => Mods.OfType<ModFlashlight>().Any();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue