diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-06-18 18:18:04 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-06-18 18:18:04 -0400 |
commit | 3c3953a7fdca6e79f50a4a5474be69ca6aab6446 (patch) | |
tree | 825f169c54e532857292c11a812fbcd87902d6fb /src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs | |
parent | cdac6dad7d163736ead307041e15857123e07951 (diff) | |
download | SMAPI-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.cs | 3 |
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(); } |