mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Fix crash when loading scores with no mods
This commit is contained in:
@ -43,6 +43,9 @@ namespace osu.Game.Scoring
|
||||
{
|
||||
get
|
||||
{
|
||||
if (modsString == null)
|
||||
return Array.Empty<Mod>();
|
||||
|
||||
var deserialized = JsonConvert.DeserializeObject<string[]>(modsString);
|
||||
return Ruleset.CreateInstance().GetAllMods().Where(mod => deserialized.Any(d => d == mod.ShortenedName)).ToArray();
|
||||
}
|
||||
|
Reference in New Issue
Block a user