summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/ModLoading')
-rw-r--r--src/SMAPI/Framework/ModLoading/ModResolver.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModLoading/ModResolver.cs b/src/SMAPI/Framework/ModLoading/ModResolver.cs
index be73254d..8b4a3eb8 100644
--- a/src/SMAPI/Framework/ModLoading/ModResolver.cs
+++ b/src/SMAPI/Framework/ModLoading/ModResolver.cs
@@ -57,6 +57,13 @@ namespace StardewModdingAPI.Framework.ModLoading
if (string.IsNullOrWhiteSpace(displayName))
displayName = modDir.FullName.Replace(rootPath, "").Trim('/', '\\');
+ // apply defaults
+ if (manifest != null && dataRecord != null)
+ {
+ if (dataRecord.UpdateKey != null)
+ manifest.UpdateKeys = new[] { dataRecord.UpdateKey };
+ }
+
// build metadata
ModMetadataStatus status = error == null
? ModMetadataStatus.Found