Fix parsing floats (#7)
This commit is contained in:
@@ -26,6 +26,7 @@ using Game.Maps;
|
||||
using Game.Network.Packets;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
|
||||
namespace Game.Chat
|
||||
@@ -892,7 +893,7 @@ namespace Game.Chat
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!float.TryParse(valueStr, out float value))
|
||||
if (!float.TryParse(valueStr, NumberStyles.Float, CultureInfo.InvariantCulture, out float value))
|
||||
return false;
|
||||
|
||||
target.SetFloatValue(field, value);
|
||||
|
||||
Reference in New Issue
Block a user