mirror of
https://github.com/Auxilor/EcoBits.git
synced 2026-01-06 15:52:04 +00:00
Fixed currency
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user