fix compile errors on Linux
This commit is contained in:
parent
08ba5dc520
commit
2b76309b53
|
@ -86,7 +86,7 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
|
||||||
// add values
|
// add values
|
||||||
if (this.Add.Any())
|
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)
|
foreach (string add in this.Add)
|
||||||
{
|
{
|
||||||
if (!curValues.Contains(add))
|
if (!curValues.Contains(add))
|
||||||
|
@ -130,10 +130,10 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
|
||||||
// parse each change in the descriptor
|
// parse each change in the descriptor
|
||||||
if (!string.IsNullOrWhiteSpace(descriptor))
|
if (!string.IsNullOrWhiteSpace(descriptor))
|
||||||
{
|
{
|
||||||
List<string> rawErrors = new();
|
List<string> rawErrors = new List<string>();
|
||||||
foreach (string rawEntry in descriptor.Split(','))
|
foreach (string rawEntry in descriptor.Split(','))
|
||||||
{
|
{
|
||||||
// normalzie entry
|
// normalize entry
|
||||||
string entry = rawEntry.Trim();
|
string entry = rawEntry.Trim();
|
||||||
if (entry == string.Empty)
|
if (entry == string.Empty)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -57,7 +57,7 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
|
||||||
betaVersion = null;
|
betaVersion = null;
|
||||||
|
|
||||||
// parse mod data overrides
|
// 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']");
|
HtmlNodeCollection modNodes = doc.DocumentNode.SelectNodes("//table[@id='mod-overrides-list']//tr[@class='mod']");
|
||||||
if (modNodes == null)
|
if (modNodes == null)
|
||||||
|
|
|
@ -1232,7 +1232,7 @@ namespace StardewModdingAPI.Metadata
|
||||||
// yield root + child locations
|
// yield root + child locations
|
||||||
foreach (GameLocation location in rootLocations)
|
foreach (GameLocation location in rootLocations)
|
||||||
{
|
{
|
||||||
yield return new(location, null);
|
yield return new LocationInfo(location, null);
|
||||||
|
|
||||||
if (buildingInteriors && location is BuildableGameLocation buildableLocation)
|
if (buildingInteriors && location is BuildableGameLocation buildableLocation)
|
||||||
{
|
{
|
||||||
|
@ -1240,7 +1240,7 @@ namespace StardewModdingAPI.Metadata
|
||||||
{
|
{
|
||||||
GameLocation indoors = building.indoors.Value;
|
GameLocation indoors = building.indoors.Value;
|
||||||
if (indoors != null)
|
if (indoors != null)
|
||||||
yield return new(indoors, building);
|
yield return new LocationInfo(indoors, building);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue