From c44f36f6055ab5916bc1f86a86dff2842da19e66 Mon Sep 17 00:00:00 2001 From: igwb Date: Sat, 4 Jan 2014 16:39:24 +0100 Subject: [PATCH] fix GoldenChestEconomoy incorrectly rounding --- .../vault/economy/plugins/Economy_GoldenChestEconomy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/milkbowl/vault/economy/plugins/Economy_GoldenChestEconomy.java b/src/net/milkbowl/vault/economy/plugins/Economy_GoldenChestEconomy.java index 1555d22..8faace3 100644 --- a/src/net/milkbowl/vault/economy/plugins/Economy_GoldenChestEconomy.java +++ b/src/net/milkbowl/vault/economy/plugins/Economy_GoldenChestEconomy.java @@ -179,7 +179,7 @@ public class Economy_GoldenChestEconomy implements Economy{ return new EconomyResponse(0, 0, ResponseType.FAILURE, "Cannot desposit negative funds"); } - economy.getVaultConnector().depositPlayer(playerName, Math.round(amount)); + economy.getVaultConnector().depositPlayer(playerName, amount); return new EconomyResponse(amount, getBalance(playerName), EconomyResponse.ResponseType.SUCCESS, null); }