mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 01:21:57 -05:00
Fix float options not loading properly when , used for decimal point
This commit is contained in:
parent
5c03fc8009
commit
8f8e880d94
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ namespace ClassicalSharp {
|
|||
public static float GetFloat(string key, float min, float max, float defValue) {
|
||||
string value;
|
||||
float valueFloat = 0;
|
||||
if (!TryGetValue(key, out value) || !Single.TryParse(value, out valueFloat))
|
||||
if (!TryGetValue(key, out value) || !Utils.TryParseDecimal(value, out valueFloat))
|
||||
return defValue;
|
||||
Utils.Clamp(ref valueFloat, min, max);
|
||||
return valueFloat;
|
||||
|
|
Loading…
Reference in a new issue