summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-05-09 12:06:18 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-05-09 12:06:18 -0400
commitd9c001a39f4562038fb608468169ea22cf074111 (patch)
treefd109ae27462e0be1e80f4bb5411272465a8f7ef
parent7dd3e37dec6924b1acd3f3045aefe5ebc8f91e8f (diff)
downloadSMAPI-d9c001a39f4562038fb608468169ea22cf074111.tar.gz
SMAPI-d9c001a39f4562038fb608468169ea22cf074111.tar.bz2
SMAPI-d9c001a39f4562038fb608468169ea22cf074111.zip
fix version zero validation
-rw-r--r--docs/release-notes.md4
-rw-r--r--src/SMAPI/Framework/ModLoading/ModResolver.cs2
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index caa90d19..859bf155 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -7,6 +7,10 @@
* Migrated to Harmony 2.0 (see [_migrate to Harmony 2.0_](https://stardewvalleywiki.com/Modding:Migrate_to_Harmony_2.0) for more info).
-->
+## Upcoming release
+* For mod authors:
+ * Fixed validation for mods with version `0.0.0`.
+
## 3.10.1
Released 03 May 2021 for Stardew Valley 1.5.4 or later.
diff --git a/src/SMAPI/Framework/ModLoading/ModResolver.cs b/src/SMAPI/Framework/ModLoading/ModResolver.cs
index c70820e4..7761a567 100644
--- a/src/SMAPI/Framework/ModLoading/ModResolver.cs
+++ b/src/SMAPI/Framework/ModLoading/ModResolver.cs
@@ -173,7 +173,7 @@ namespace StardewModdingAPI.Framework.ModLoading
if (string.IsNullOrWhiteSpace(mod.Manifest.Name))
missingFields.Add(nameof(IManifest.Name));
- if (mod.Manifest.Version == null || mod.Manifest.Version.ToString() == "0.0")
+ if (mod.Manifest.Version == null || mod.Manifest.Version.ToString() == "0.0.0")
missingFields.Add(nameof(IManifest.Version));
if (string.IsNullOrWhiteSpace(mod.Manifest.UniqueID))
missingFields.Add(nameof(IManifest.UniqueID));