1 parent d420ba7 commit 7348f98Copy full SHA for 7348f98
1 file changed
UnityLauncherPro/Tools.cs
@@ -3,6 +3,7 @@
3
using System.Collections.Generic;
4
using System.ComponentModel;
5
using System.Diagnostics;
6
+using System.Globalization;
7
using System.IO;
8
using System.Linq;
9
using System.Net;
@@ -970,7 +971,7 @@ public static string CleanVersionNumber(string version)
970
971
if (string.IsNullOrEmpty(version)) return null;
972
973
var split = version.Split('.');
- float parsedVersion = float.Parse($"{split[0]}.{split[1]}");
974
+ float parsedVersion = float.Parse($"{split[0]}.{split[1]}", CultureInfo.InvariantCulture);
975
976
// For 2023.3 and newer pre-release (alpha or beta) versions, do not clean.
977
if ((IsAlpha(version) || version.Contains("b")) && parsedVersion >= 2023.3)
0 commit comments