summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-10-11 18:33:30 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-10-11 18:33:30 -0400
commitb31babd1b3dd8add92a26cd52df1244561e6b4f0 (patch)
treed99bb0e0ee8e3fdc9765eee7b718c414aca0bc3a
parent5940f3283e7b06acae1873963d583f0d43487f94 (diff)
downloadSMAPI-b31babd1b3dd8add92a26cd52df1244561e6b4f0.tar.gz
SMAPI-b31babd1b3dd8add92a26cd52df1244561e6b4f0.tar.bz2
SMAPI-b31babd1b3dd8add92a26cd52df1244561e6b4f0.zip
fix second-pass dependency check failing for optional dependencies
-rw-r--r--src/SMAPI/Framework/SCore.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index 9f642649..47370afd 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -912,7 +912,7 @@ namespace StardewModdingAPI.Framework
// Although dependences are validated before mods are loaded, a dependency may have failed to load.
if (mod.Manifest.Dependencies?.Any() == true)
{
- foreach (IManifestDependency dependency in mod.Manifest.Dependencies)
+ foreach (IManifestDependency dependency in mod.Manifest.Dependencies.Where(p => p.IsRequired))
{
if (this.ModRegistry.Get(dependency.UniqueID) == null)
{