diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-11 21:07:45 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-11 21:07:45 -0400 |
commit | f0e1a46f0fa52b4365c8ccb64c7fe4784002257b (patch) | |
tree | 74c8dee2a7b62fd4aec4f1e026d4957a773025be /src/SMAPI/Program.cs | |
parent | 98fa9f03891e3dc487bee6dcb3756e6251c67aef (diff) | |
download | SMAPI-f0e1a46f0fa52b4365c8ccb64c7fe4784002257b.tar.gz SMAPI-f0e1a46f0fa52b4365c8ccb64c7fe4784002257b.tar.bz2 SMAPI-f0e1a46f0fa52b4365c8ccb64c7fe4784002257b.zip |
fix error when content pack needs a mod that couldn't be loaded
Diffstat (limited to 'src/SMAPI/Program.cs')
-rw-r--r-- | src/SMAPI/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs index e713add5..4bd40710 100644 --- a/src/SMAPI/Program.cs +++ b/src/SMAPI/Program.cs @@ -854,7 +854,7 @@ namespace StardewModdingAPI // log loaded content packs if (loadedContentPacks.Any()) { - string GetModDisplayName(string id) => loadedMods.First(p => id != null && id.Equals(p.Manifest?.UniqueID, StringComparison.InvariantCultureIgnoreCase))?.DisplayName; + string GetModDisplayName(string id) => loadedMods.FirstOrDefault(p => id != null && id.Equals(p.Manifest?.UniqueID, StringComparison.InvariantCultureIgnoreCase))?.DisplayName; this.Monitor.Log($"Loaded {loadedContentPacks.Length} content packs:", LogLevel.Info); foreach (IModMetadata metadata in loadedContentPacks.OrderBy(p => p.DisplayName)) |