From 30e89b3a3373d3a73f62e7297ac27db8de70246b Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 30 Mar 2018 22:51:34 -0400 Subject: fix mods not being loaded if an optional dependency is installed but skipped --- docs/release-notes.md | 5 ++++- src/SMAPI/Framework/ModLoading/ModResolver.cs | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index a3e1abbd..3406e735 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -15,7 +15,10 @@ * Added support for beta releases on the home page. --> -## vNext +## 2.5.5 +* For players: + * Fixed mods not being loaded if an optional dependency is installed but skipped. + * For the [log parser][]: * Tweaked UI. diff --git a/src/SMAPI/Framework/ModLoading/ModResolver.cs b/src/SMAPI/Framework/ModLoading/ModResolver.cs index f878a1b9..a9896278 100644 --- a/src/SMAPI/Framework/ModLoading/ModResolver.cs +++ b/src/SMAPI/Framework/ModLoading/ModResolver.cs @@ -352,6 +352,7 @@ namespace StardewModdingAPI.Framework.ModLoading { // sorted successfully case ModDependencyStatus.Sorted: + case ModDependencyStatus.Failed when !dependency.IsRequired: // ignore failed optional dependency break; // failed, which means this mod can't be loaded either -- cgit