diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-10-08 19:53:43 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-10-08 19:53:43 -0400 |
commit | 2b76309b53f8cf322152801d0c1ca6e3b3c777f5 (patch) | |
tree | 3961cd37336a0c972f16ca947a6ce7807dc2b239 /src/SMAPI.Toolkit/Framework/Clients/Wiki | |
parent | 08ba5dc52053a62be1fe3319ab3428a2c41fee28 (diff) | |
download | SMAPI-2b76309b53f8cf322152801d0c1ca6e3b3c777f5.tar.gz SMAPI-2b76309b53f8cf322152801d0c1ca6e3b3c777f5.tar.bz2 SMAPI-2b76309b53f8cf322152801d0c1ca6e3b3c777f5.zip |
fix compile errors on Linux
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/Clients/Wiki')
-rw-r--r-- | src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs | 6 | ||||
-rw-r--r-- | src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs b/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs index 44ebf297..f1feb44b 100644 --- a/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs +++ b/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs @@ -86,7 +86,7 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki // add values if (this.Add.Any()) { - HashSet<string> curValues = new(values.Select(p => p?.Trim() ?? string.Empty), StringComparer.OrdinalIgnoreCase); + HashSet<string> curValues = new HashSet<string>(values.Select(p => p?.Trim() ?? string.Empty), StringComparer.OrdinalIgnoreCase); foreach (string add in this.Add) { if (!curValues.Contains(add)) @@ -130,10 +130,10 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki // parse each change in the descriptor if (!string.IsNullOrWhiteSpace(descriptor)) { - List<string> rawErrors = new(); + List<string> rawErrors = new List<string>(); foreach (string rawEntry in descriptor.Split(',')) { - // normalzie entry + // normalize entry string entry = rawEntry.Trim(); if (entry == string.Empty) continue; diff --git a/src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs b/src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs index f48c4ffa..f85e82e1 100644 --- a/src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs +++ b/src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs @@ -57,7 +57,7 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki betaVersion = null; // parse mod data overrides - Dictionary<string, WikiDataOverrideEntry> overrides = new(StringComparer.OrdinalIgnoreCase); + Dictionary<string, WikiDataOverrideEntry> overrides = new Dictionary<string, WikiDataOverrideEntry>(StringComparer.OrdinalIgnoreCase); { HtmlNodeCollection modNodes = doc.DocumentNode.SelectNodes("//table[@id='mod-overrides-list']//tr[@class='mod']"); if (modNodes == null) |