mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-16 17:04:44 +01:00
use decimal
This commit is contained in:
@@ -23,7 +23,7 @@ namespace EpinelPS.LobbyServer.Msgs.Shop
|
|||||||
MidasProductRecord? record = product.FirstOrDefault().Value;
|
MidasProductRecord? record = product.FirstOrDefault().Value;
|
||||||
if (record != null)
|
if (record != null)
|
||||||
{
|
{
|
||||||
if(!double.TryParse(record.cost, out double price))
|
if(!decimal.TryParse(record.cost, out decimal price))
|
||||||
{
|
{
|
||||||
Console.WriteLine("Failed to parse " + record.cost+" Cash shop will not work probably");
|
Console.WriteLine("Failed to parse " + record.cost+" Cash shop will not work probably");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user