summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-30 01:30:43 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-10 00:04:26 -0400
commit43e9e2cfe2c6938121d9a5e106acfc944a1821c6 (patch)
tree5666745b89f7a2cd968c59ad176afdc79231dd04 /src/SMAPI/Framework/ContentManagers/ModContentManager.cs
parent565677c18ca4e12a2d8635b4ea2db49255d28142 (diff)
downloadSMAPI-43e9e2cfe2c6938121d9a5e106acfc944a1821c6.tar.gz
SMAPI-43e9e2cfe2c6938121d9a5e106acfc944a1821c6.tar.bz2
SMAPI-43e9e2cfe2c6938121d9a5e106acfc944a1821c6.zip
fix accidental case-sensitivity change
Diffstat (limited to 'src/SMAPI/Framework/ContentManagers/ModContentManager.cs')
-rw-r--r--src/SMAPI/Framework/ContentManagers/ModContentManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
index 160e3c19..8e2d58a6 100644
--- a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
+++ b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
@@ -331,7 +331,7 @@ namespace StardewModdingAPI.Framework.ContentManagers
FileInfo file = this.FileLookup.GetFile(path);
// try with default image extensions
- if (!file.Exists && typeof(Texture2D).IsAssignableFrom(typeof(T)) && !ModContentManager.LocalTilesheetExtensions.Contains(file.Extension))
+ if (!file.Exists && typeof(Texture2D).IsAssignableFrom(typeof(T)) && !ModContentManager.LocalTilesheetExtensions.Contains(file.Extension, StringComparer.OrdinalIgnoreCase))
{
foreach (string extension in ModContentManager.LocalTilesheetExtensions)
{