diff --git a/MCGalaxy/util/Utils.cs b/MCGalaxy/util/Utils.cs index 461734fb6..0451d15d7 100644 --- a/MCGalaxy/util/Utils.cs +++ b/MCGalaxy/util/Utils.cs @@ -101,6 +101,7 @@ namespace MCGalaxy { // Not all languages use . as their decimal point separator public static bool TryParseDecimal(string s, out float result) { + if (s.IndexOf(',') >= 0) s = s.Replace(',', '.'); result = 0; float temp; const NumberStyles style = NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite