summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-08-14 12:21:40 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-08-14 12:21:40 -0400
commit4f28ea33bd7cc65485402c5e85259083e86b49e1 (patch)
tree86c4d8f9272de9a715cfcbf4008f0c09f5a59a21 /src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs
parent60b41195778af33fd609eab66d9ae3f1d1165e8f (diff)
parent4dd4efc96fac6a7ab66c14edead10e4fa988040d (diff)
downloadSMAPI-4f28ea33bd7cc65485402c5e85259083e86b49e1.tar.gz
SMAPI-4f28ea33bd7cc65485402c5e85259083e86b49e1.tar.bz2
SMAPI-4f28ea33bd7cc65485402c5e85259083e86b49e1.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs')
-rw-r--r--src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs b/src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs
index de8d0f02..f1cce4a4 100644
--- a/src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs
+++ b/src/StardewModdingAPI.Toolkit/Framework/ModScanning/ModScanner.cs
@@ -51,8 +51,7 @@ namespace StardewModdingAPI.Toolkit.Framework.ModScanning
{
try
{
- manifest = this.JsonHelper.ReadJsonFile<Manifest>(manifestFile.FullName);
- if (manifest == null)
+ if (!this.JsonHelper.ReadJsonFileIfExists<Manifest>(manifestFile.FullName, out manifest))
manifestError = "its manifest is invalid.";
}
catch (SParseException ex)