From 2b76309b53f8cf322152801d0c1ca6e3b3c777f5 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 8 Oct 2021 19:53:43 -0400 Subject: fix compile errors on Linux --- src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs | 6 +++--- src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/SMAPI.Toolkit/Framework/Clients/Wiki') 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 curValues = new(values.Select(p => p?.Trim() ?? string.Empty), StringComparer.OrdinalIgnoreCase); + HashSet curValues = new HashSet(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 rawErrors = new(); + List rawErrors = new List(); 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 overrides = new(StringComparer.OrdinalIgnoreCase); + Dictionary overrides = new Dictionary(StringComparer.OrdinalIgnoreCase); { HtmlNodeCollection modNodes = doc.DocumentNode.SelectNodes("//table[@id='mod-overrides-list']//tr[@class='mod']"); if (modNodes == null) -- cgit