diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-10-01 19:33:46 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-10-01 19:33:46 -0400 |
commit | 0530824cc2c573cae0a80f7def2b46bf8aeb9af9 (patch) | |
tree | fb03b62b19f1ae5badfebfb45af2a32cb036e594 /src/SMAPI/Framework/SCore.cs | |
parent | 6c39a31f72c5d6e1e202fe3fbed5f775976e448b (diff) | |
download | SMAPI-0530824cc2c573cae0a80f7def2b46bf8aeb9af9.tar.gz SMAPI-0530824cc2c573cae0a80f7def2b46bf8aeb9af9.tar.bz2 SMAPI-0530824cc2c573cae0a80f7def2b46bf8aeb9af9.zip |
fix error in second-pass dependency checks if a mod is invalid
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-rw-r--r-- | src/SMAPI/Framework/SCore.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs index 4c33f348..2c5cd2bd 100644 --- a/src/SMAPI/Framework/SCore.cs +++ b/src/SMAPI/Framework/SCore.cs @@ -916,7 +916,7 @@ namespace StardewModdingAPI.Framework if (this.ModRegistry.Get(dependency.UniqueID) == null) { string dependencyName = mods - .FirstOrDefault(p => dependency.UniqueID.Equals(p.Manifest.UniqueID, StringComparison.InvariantCultureIgnoreCase)) + .FirstOrDefault(otherMod => otherMod.HasID() && dependency.UniqueID.Equals(otherMod.Manifest.UniqueID, StringComparison.InvariantCultureIgnoreCase)) ?.DisplayName ?? dependency.UniqueID; errorReasonPhrase = $"it needs the '{dependencyName}' mod, which couldn't be loaded."; return false; |