From 1b82d0641e361c644a564db2824e739d4ed8188f Mon Sep 17 00:00:00 2001 From: CWX Date: Sun, 1 Jun 2025 21:35:28 +0100 Subject: [PATCH] change the invariantCulture on factory --- .../Utils/Json/Converters/StringToNumberFactoryConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Utils/Json/Converters/StringToNumberFactoryConverter.cs b/Libraries/SPTarkov.Server.Core/Utils/Json/Converters/StringToNumberFactoryConverter.cs index a437cf7a..86e83a5e 100644 --- a/Libraries/SPTarkov.Server.Core/Utils/Json/Converters/StringToNumberFactoryConverter.cs +++ b/Libraries/SPTarkov.Server.Core/Utils/Json/Converters/StringToNumberFactoryConverter.cs @@ -49,7 +49,7 @@ public class StringToNumberFactoryConverter : JsonConverterFactory if (_stringParseMethod != null) { - return (T) _stringParseMethod.Invoke(null, [value, CultureInfo.CreateSpecificCulture("en-US")]); + return (T) _stringParseMethod.Invoke(null, [value, CultureInfo.InvariantCulture]); } } catch (Exception ex)