summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-06-18 18:18:04 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-06-18 18:18:04 -0400
commit3c3953a7fdca6e79f50a4a5474be69ca6aab6446 (patch)
tree825f169c54e532857292c11a812fbcd87902d6fb /src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
parentcdac6dad7d163736ead307041e15857123e07951 (diff)
downloadSMAPI-3c3953a7fdca6e79f50a4a5474be69ca6aab6446.tar.gz
SMAPI-3c3953a7fdca6e79f50a4a5474be69ca6aab6446.tar.bz2
SMAPI-3c3953a7fdca6e79f50a4a5474be69ca6aab6446.zip
add support for minimum dependency versions (#286)
Diffstat (limited to 'src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs')
-rw-r--r--src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs b/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
index 6b5a6aaa..7acb5fd0 100644
--- a/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
+++ b/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
@@ -51,7 +51,8 @@ namespace StardewModdingAPI.Framework.Serialisation
foreach (JObject obj in JArray.Load(reader).Children<JObject>())
{
string uniqueID = obj.Value<string>(nameof(IManifestDependency.UniqueID));
- result.Add(new ManifestDependency(uniqueID));
+ string minVersion = obj.Value<string>(nameof(IManifestDependency.MinimumVersion));
+ result.Add(new ManifestDependency(uniqueID, minVersion));
}
return result.ToArray();
}