From 58cf77e2b9d8fd459f8d33458c4f8743f6201b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl=20=28xHyroM=29?= Date: Thu, 5 Oct 2023 22:09:48 +0200 Subject: [PATCH] fix(currency-money): format double --- .../lighteco/currency/money/bukkit/hooks/vault/Vault.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currency-money/src/main/java/dev/xhyrom/lighteco/currency/money/bukkit/hooks/vault/Vault.java b/currency-money/src/main/java/dev/xhyrom/lighteco/currency/money/bukkit/hooks/vault/Vault.java index 454cdf2..03888e4 100644 --- a/currency-money/src/main/java/dev/xhyrom/lighteco/currency/money/bukkit/hooks/vault/Vault.java +++ b/currency-money/src/main/java/dev/xhyrom/lighteco/currency/money/bukkit/hooks/vault/Vault.java @@ -52,7 +52,7 @@ public class Vault extends AbstractEconomy { NumberFormat format = NumberFormat.getInstance(); format.setCurrency(java.util.Currency.getInstance(this.plugin.getConfig().currencyCode)); - return format.format(BigDecimal.valueOf(amount)); + return format.format(amount); } @Override