diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-07-26 02:50:20 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-07-26 02:50:20 -0400 |
commit | 7900a84bd68d7c9450bba719ce925b61043875f3 (patch) | |
tree | 8c495b7fe1c29c0cb552dc657a7a8b61185be0bd /src/SMAPI.Toolkit/Framework/ModData/ModDataRecord.cs | |
parent | ee4c88f6016b6bc0d72e0d459f6b918bdd7728f3 (diff) | |
download | SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.tar.gz SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.tar.bz2 SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.zip |
use ordinal comparison/sorting instead of invariant
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/ModData/ModDataRecord.cs')
-rw-r--r-- | src/SMAPI.Toolkit/Framework/ModData/ModDataRecord.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI.Toolkit/Framework/ModData/ModDataRecord.cs b/src/SMAPI.Toolkit/Framework/ModData/ModDataRecord.cs index c892d820..3201c421 100644 --- a/src/SMAPI.Toolkit/Framework/ModData/ModDataRecord.cs +++ b/src/SMAPI.Toolkit/Framework/ModData/ModDataRecord.cs @@ -46,13 +46,13 @@ namespace StardewModdingAPI.Toolkit.Framework.ModData public bool HasID(string id) { // try main ID - if (this.ID.Equals(id, StringComparison.InvariantCultureIgnoreCase)) + if (this.ID.Equals(id, StringComparison.OrdinalIgnoreCase)) return true; // try former IDs foreach (string formerID in this.FormerIDs) { - if (formerID.Equals(id, StringComparison.InvariantCultureIgnoreCase)) + if (formerID.Equals(id, StringComparison.OrdinalIgnoreCase)) return true; } |