From cb4f9c57a28c51277f45dd36ea824d9aa3c3998e Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 27 Apr 2024 19:35:16 -0400 Subject: [PATCH] Probably fix turkish breaking --- NewHorizons/Utility/OuterWilds/AstroObjectLocator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Utility/OuterWilds/AstroObjectLocator.cs b/NewHorizons/Utility/OuterWilds/AstroObjectLocator.cs index b1aba93e..b732eede 100644 --- a/NewHorizons/Utility/OuterWilds/AstroObjectLocator.cs +++ b/NewHorizons/Utility/OuterWilds/AstroObjectLocator.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Globalization; using System.Linq; using NewHorizons.Components.Orbital; using NewHorizons.Handlers; @@ -33,7 +34,7 @@ namespace NewHorizons.Utility.OuterWilds } // Else check stock names - var stringID = name.ToUpper().Replace(" ", "_").Replace("'", ""); + var stringID = name.ToUpper(CultureInfo.InvariantCulture).Replace(" ", "_").Replace("'", ""); if (stringID.Equals("ATTLEROCK")) stringID = "TIMBER_MOON"; if (stringID.Equals("HOLLOWS_LANTERN")) stringID = "VOLCANIC_MOON"; if (stringID.Equals("ASH_TWIN")) stringID = "TOWER_TWIN"; @@ -42,7 +43,7 @@ namespace NewHorizons.Utility.OuterWilds if (stringID.Equals("EYE") || stringID.Equals("EYEOFTHEUNIVERSE")) stringID = "EYE_OF_THE_UNIVERSE"; string key; - if (stringID.ToUpper().Replace("_", "").Equals("MAPSATELLITE")) + if (stringID.ToUpper(CultureInfo.InvariantCulture).Replace("_", "").Equals("MAPSATELLITE")) { key = AstroObject.Name.MapSatellite.ToString(); }