summaryrefslogtreecommitdiff
path: root/src/SMAPI/Program.cs
diff options
context:
space:
mode:
authorDan Volchek <volchek2@illinois.edu>2018-06-10 15:17:44 -0700
committerDan Volchek <volchek2@illinois.edu>2018-06-10 15:18:05 -0700
commit468eea751dff9c7c70f0eb33eb91adf98b79cf9d (patch)
treed9a0096b1ea1a7d4c4ebb179a8c011e0c4795a96 /src/SMAPI/Program.cs
parent0b2e46d55cb09a169c7bb64ade37c82fc8233cb3 (diff)
downloadSMAPI-468eea751dff9c7c70f0eb33eb91adf98b79cf9d.tar.gz
SMAPI-468eea751dff9c7c70f0eb33eb91adf98b79cf9d.tar.bz2
SMAPI-468eea751dff9c7c70f0eb33eb91adf98b79cf9d.zip
set mods without updates to have no updates
Diffstat (limited to 'src/SMAPI/Program.cs')
-rw-r--r--src/SMAPI/Program.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs
index 96061b2a..2ee18a29 100644
--- a/src/SMAPI/Program.cs
+++ b/src/SMAPI/Program.cs
@@ -716,6 +716,14 @@ namespace StardewModdingAPI
}
}
+ // set mods to have no updates
+ foreach (IModMetadata mod in results.Select(item => item.Mod)
+ .Where(item => !updatesByMod.ContainsKey(item)))
+ {
+ mod.SetUpdateStatus(new ModUpdateStatus());
+ mod.SetPreviewUpdateStatus(new ModUpdateStatus());
+ }
+
// output
if (updatesByMod.Any())
{