9
0
mirror of https://github.com/Auxilor/EcoBits.git synced 2026-01-06 15:52:04 +00:00

Fixed currency

This commit is contained in:
Auxilor
2023-05-17 18:36:18 +01:00
parent e3957de8d2
commit fd085da81d

View File

@@ -43,7 +43,7 @@ class Currency(
val name = config.getFormattedString("name")
val max: BigDecimal? = if (config.has("max"))
val max: BigDecimal? = if (config.has("max") && config.getDouble("max") > 0)
BigDecimal(config.getDouble("max"))
else null