diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-10-07 18:47:28 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-10-07 18:47:28 -0400 |
commit | 52758e4e43ad60e7b9e69d00cf4a75d1515277fe (patch) | |
tree | 1074f5dd3437060dcff5079623e80ee23a575426 /src/SMAPI.Toolkit/Framework/Clients/Wiki | |
parent | 8263a4406be34b438d295220b99c48502a6636bd (diff) | |
download | SMAPI-52758e4e43ad60e7b9e69d00cf4a75d1515277fe.tar.gz SMAPI-52758e4e43ad60e7b9e69d00cf4a75d1515277fe.tar.bz2 SMAPI-52758e4e43ad60e7b9e69d00cf4a75d1515277fe.zip |
fix build error with Stardew Valley 1.5.4
Diffstat (limited to 'src/SMAPI.Toolkit/Framework/Clients/Wiki')
-rw-r--r-- | src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs | 3 | ||||
-rw-r--r-- | src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiDataOverrideEntry.cs | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs b/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs index 6fcc3b18..44ebf297 100644 --- a/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs +++ b/src/SMAPI.Toolkit/Framework/Clients/Wiki/ChangeDescriptor.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using System.Text; namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki { @@ -180,7 +179,7 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki errors = rawErrors.ToArray(); } else - errors = Array.Empty<string>(); + errors = new string[0]; // build model return new ChangeDescriptor( diff --git a/src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiDataOverrideEntry.cs b/src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiDataOverrideEntry.cs index e5ee81be..0587e09d 100644 --- a/src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiDataOverrideEntry.cs +++ b/src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiDataOverrideEntry.cs @@ -1,7 +1,5 @@ #nullable enable -using System; - namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki { /// <summary>The data overrides to apply to matching mods.</summary> @@ -11,7 +9,7 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki ** Accessors *********/ /// <summary>The unique mod IDs for the mods to override.</summary> - public string[] Ids { get; set; } = Array.Empty<string>(); + public string[] Ids { get; set; } = new string[0]; /// <summary>Maps local versions to a semantic version for update checks.</summary> public ChangeDescriptor? ChangeLocalVersions { get; set; } |