From bb8f1e96337174e45876b812f56365cf17240584 Mon Sep 17 00:00:00 2001 From: Solxan <59670736+Solxanich@users.noreply.github.com> Date: Fri, 10 Nov 2023 19:59:56 -0700 Subject: [PATCH] Fix a Case Invariance problem in Mod Browser Install States --- patches/tModLoader/Terraria/Social/Base/SocialBrowserModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/tModLoader/Terraria/Social/Base/SocialBrowserModule.cs b/patches/tModLoader/Terraria/Social/Base/SocialBrowserModule.cs index 6273c3478a7..522d84b3ba4 100644 --- a/patches/tModLoader/Terraria/Social/Base/SocialBrowserModule.cs +++ b/patches/tModLoader/Terraria/Social/Base/SocialBrowserModule.cs @@ -77,7 +77,7 @@ public List GetInstalledModDownloadItems() internal LocalMod IsItemInstalled(string slug) { - return GetInstalledMods().Where(t => t.Name == slug).FirstOrDefault(); + return GetInstalledMods().Where(t => string.Equals(t.Name, slug, StringComparison.OrdinalIgnoreCase)).FirstOrDefault(); } /////// Management of Downloads ///////////////////////////////////////////