summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SCore.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-16 19:21:38 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-16 19:21:38 -0400
commit525351e90582beb0d79fa75bef161270e85a3ea2 (patch)
treeaefd8da7a785d5c33e60940fca77cd87910558b5 /src/SMAPI/Framework/SCore.cs
parente8bcbf7e5ac52662c12045d1a2a72edbd641bf4c (diff)
downloadSMAPI-525351e90582beb0d79fa75bef161270e85a3ea2.tar.gz
SMAPI-525351e90582beb0d79fa75bef161270e85a3ea2.tar.bz2
SMAPI-525351e90582beb0d79fa75bef161270e85a3ea2.zip
fix case-sensitive mod ID check
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-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 0fbf6525..385a94ea 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -1231,7 +1231,7 @@ namespace StardewModdingAPI.Framework
}
// make sure it's a content pack for the requesting mod
- if (!onBehalfOf.IsContentPack || !string.Equals(onBehalfOf.Manifest.ContentPackFor?.UniqueID, mod.Manifest.UniqueID))
+ if (!onBehalfOf.IsContentPack || !string.Equals(onBehalfOf.Manifest.ContentPackFor?.UniqueID, mod.Manifest.UniqueID, StringComparison.OrdinalIgnoreCase))
{
mod.LogAsModOnce($"{errorPrefix}: that isn't a content pack for this mod.", LogLevel.Warn);
return null;