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
1 changed files with 4 additions and 0 deletions

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 @@ public override void FromDatabase(IReadOnlyDictionary<int, double> values, int h
HitCircleCount = hitCircleCount;
SpinnerCount = spinnerCount;
}
[UsedImplicitly]
public bool ShouldSerializeFlashlightRating() => Mods.OfType<ModFlashlight>().Any();
}
}