From e2fafa4f6036f083b63be173a2472a33f498d576 Mon Sep 17 00:00:00 2001 From: Jade Macho Date: Sun, 18 Feb 2024 22:55:36 +0100 Subject: [PATCH] Invariant culture on float parse --- CustomResolution/Cmds/OpenSettingsCmd.cs | 2 +- CustomResolution/CustomResolution.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CustomResolution/Cmds/OpenSettingsCmd.cs b/CustomResolution/Cmds/OpenSettingsCmd.cs index 0b27634..e005544 100644 --- a/CustomResolution/Cmds/OpenSettingsCmd.cs +++ b/CustomResolution/Cmds/OpenSettingsCmd.cs @@ -66,7 +66,7 @@ public sealed class OpenSettingsCmd : Cmd return; } - if (!float.TryParse(arguments, out float value)) + if (!float.TryParse(arguments, CultureInfo.InvariantCulture, out float value)) { Service.PrintChat("Invalid parameters."); return; diff --git a/CustomResolution/CustomResolution.csproj b/CustomResolution/CustomResolution.csproj index 8de017d..69fc0ad 100644 --- a/CustomResolution/CustomResolution.csproj +++ b/CustomResolution/CustomResolution.csproj @@ -3,7 +3,7 @@ 0x0ade - 0.1.0.2 + 0.1.0.3