diff --git a/MinecraftClient/Settings.cs b/MinecraftClient/Settings.cs index d9df4e1a..b8b3cbca 100644 --- a/MinecraftClient/Settings.cs +++ b/MinecraftClient/Settings.cs @@ -501,7 +501,17 @@ namespace MinecraftClient converted = Convert.ChangeType(input, effectiveType, CultureInfo.InvariantCulture); return true; } - catch + catch (InvalidCastException) + { + converted = null; + return false; + } + catch (FormatException) + { + converted = null; + return false; + } + catch (OverflowException) { converted = null; return false;