summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-04 20:00:29 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-12-04 23:49:08 -0500
commit06257a510f96db331855681c98d42af035fda018 (patch)
tree07fc045f8b42e9ffb1a6a3d2431312d6d7ec75d2 /src/SMAPI/Framework
parent94d5d8e106aea9cf2d2808e6ba77ae0174cd9b96 (diff)
downloadSMAPI-06257a510f96db331855681c98d42af035fda018.tar.gz
SMAPI-06257a510f96db331855681c98d42af035fda018.tar.bz2
SMAPI-06257a510f96db331855681c98d42af035fda018.zip
update version parsing code (#606)
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/SCore.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index eff7cb3b..5fb2dc61 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -902,11 +902,13 @@ namespace StardewModdingAPI.Framework
return false;
}
+#if !SMAPI_3_0_STRICT
// add deprecation warning for old version format
{
if (mod.Manifest?.Version is Toolkit.SemanticVersion version && version.IsLegacyFormat)
this.DeprecationManager.Warn(mod.DisplayName, "non-string manifest version", "2.8", DeprecationLevel.Notice);
}
+#endif
// validate dependencies
// Although dependences are validated before mods are loaded, a dependency may have failed to load.