Ignore casing when matching mods acronyms

This commit is contained in:
Dan Balasescu 2024-10-31 08:55:40 +09:00
parent 50be7fb077
commit 372162de5d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ public IEnumerable<Mod> CreateAllMods() => Enum.GetValues<ModType>()
/// <param name="acronym">The acronym to query for .</param>
public Mod? CreateModFromAcronym(string acronym)
{
return AllMods.FirstOrDefault(m => m.Acronym == acronym)?.CreateInstance();
return AllMods.FirstOrDefault(m => string.Equals(m.Acronym, acronym, StringComparison.OrdinalIgnoreCase))?.CreateInstance();
}
/// <summary>