summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-10 14:33:36 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-10 14:33:36 -0400
commitd82e57d3060c96923ba9a8efe3c9eb839abffe59 (patch)
treea6d9760bbb83444dc5418d9b3a996c5f6ce96c78 /src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
parent61d13d370c07bec029336890eec9501a8efc3056 (diff)
downloadSMAPI-d82e57d3060c96923ba9a8efe3c9eb839abffe59.tar.gz
SMAPI-d82e57d3060c96923ba9a8efe3c9eb839abffe59.tar.bz2
SMAPI-d82e57d3060c96923ba9a8efe3c9eb839abffe59.zip
enable SMAPI 2.0 mode by default
This commit replaces the SMAPI_2_0 compile flag with SMAPI_1_x.
Diffstat (limited to 'src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs')
-rw-r--r--src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs b/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
index 5be0f0b6..6947311b 100644
--- a/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
+++ b/src/StardewModdingAPI/Framework/Serialisation/ManifestFieldConverter.cs
@@ -73,11 +73,11 @@ namespace StardewModdingAPI.Framework.Serialisation
{
string uniqueID = obj.Value<string>(nameof(IManifestDependency.UniqueID));
string minVersion = obj.Value<string>(nameof(IManifestDependency.MinimumVersion));
-#if SMAPI_2_0
+#if SMAPI_1_x
+ result.Add(new ManifestDependency(uniqueID, minVersion));
+#else
bool required = obj.Value<bool?>(nameof(IManifestDependency.IsRequired)) ?? true;
result.Add(new ManifestDependency(uniqueID, minVersion, required));
-#else
- result.Add(new ManifestDependency(uniqueID, minVersion));
#endif
}
return result.ToArray();