summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-02 19:27:49 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-02 19:27:49 -0400
commit0ce8939988159723851e4e64eeb82b026f982ef5 (patch)
tree99200dc0e60abbd330509ac6f4d699857263ca9f /src/SMAPI/Framework
parent8789b7efa816aab0f4ce9d3149c26b8033e0b0a5 (diff)
downloadSMAPI-0ce8939988159723851e4e64eeb82b026f982ef5.tar.gz
SMAPI-0ce8939988159723851e4e64eeb82b026f982ef5.tar.bz2
SMAPI-0ce8939988159723851e4e64eeb82b026f982ef5.zip
avoid duplicate update key parsing logic, fix unit tests
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/ModLoading/ModResolver.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/ModLoading/ModResolver.cs b/src/SMAPI/Framework/ModLoading/ModResolver.cs
index 2f506571..4b05d1e5 100644
--- a/src/SMAPI/Framework/ModLoading/ModResolver.cs
+++ b/src/SMAPI/Framework/ModLoading/ModResolver.cs
@@ -5,6 +5,7 @@ using System.Linq;
using StardewModdingAPI.Toolkit;
using StardewModdingAPI.Toolkit.Framework.ModData;
using StardewModdingAPI.Toolkit.Framework.ModScanning;
+using StardewModdingAPI.Toolkit.Framework.UpdateData;
using StardewModdingAPI.Toolkit.Serialization.Models;
using StardewModdingAPI.Toolkit.Utilities;
@@ -82,9 +83,9 @@ namespace StardewModdingAPI.Framework.ModLoading
// get update URLs
List<string> updateUrls = new List<string>();
- foreach (string key in mod.Manifest.UpdateKeys)
+ foreach (UpdateKey key in mod.GetUpdateKeys(validOnly: true))
{
- string url = getUpdateUrl(key);
+ string url = getUpdateUrl(key.ToString());
if (url != null)
updateUrls.Add(url);
}