mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 03:57:32 +09: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.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using JetBrains.Annotations;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using osu.Game.Rulesets.Difficulty;
|
using osu.Game.Rulesets.Difficulty;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
@ -74,5 +75,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
|||||||
HitCircleCount = hitCircleCount;
|
HitCircleCount = hitCircleCount;
|
||||||
SpinnerCount = spinnerCount;
|
SpinnerCount = spinnerCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[UsedImplicitly]
|
||||||
|
public bool ShouldSerializeFlashlightRating() => Mods.OfType<ModFlashlight>().Any();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user