summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-04-11 16:17:23 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-04-11 16:17:23 -0400
commite4222ad1fd5b32ca81ee55e025b4e421582cb2d3 (patch)
treeab83af5e4f055f1b4dc0b3b10fc9861c64676774
parente0488fa5b2a0a5236a7a034d6712392eb8ed1918 (diff)
downloadSMAPI-e4222ad1fd5b32ca81ee55e025b4e421582cb2d3.tar.gz
SMAPI-e4222ad1fd5b32ca81ee55e025b4e421582cb2d3.tar.bz2
SMAPI-e4222ad1fd5b32ca81ee55e025b4e421582cb2d3.zip
fix error when two content packs use different capitalisation for the same required mod ID (#469)
-rw-r--r--docs/release-notes.md1
-rw-r--r--src/SMAPI/Program.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index 1a28af70..a5bd205f 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -22,6 +22,7 @@
* Fixed mod not loaded if it has an optional dependency that's loaded but skipped.
* Fixed mod update alerts not shown if one mod has an invalid remote version.
* Fixed SMAPI update alerts linking to the GitHub repository instead of [smapi.io](https://smapi.io).
+ * Fixed error when two content packs use different capitalisation for the same required mod ID.
* Fixed rare crash if the game duplicates an item.
* For the [log parser][]:
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs
index 5a1f7409..ff4e9a50 100644
--- a/src/SMAPI/Program.cs
+++ b/src/SMAPI/Program.cs
@@ -736,7 +736,7 @@ namespace StardewModdingAPI
// get content packs by mod ID
IDictionary<string, IContentPack[]> contentPacksByModID =
loadedContentPacks
- .GroupBy(p => p.Manifest.ContentPackFor.UniqueID)
+ .GroupBy(p => p.Manifest.ContentPackFor.UniqueID, StringComparer.InvariantCultureIgnoreCase)
.ToDictionary(
group => group.Key,
group => group.Select(metadata => metadata.ContentPack).ToArray(),