Fix negative math with monies

This commit is contained in:
Trever Fischer 2012-11-10 13:15:55 -05:00
parent 2b9ee96493
commit 78e8a6d36e

View File

@ -84,7 +84,7 @@ public class EconomyAPI implements Economy {
private EconomyResponse adjustPlayer(String playerName, double amount) { private EconomyResponse adjustPlayer(String playerName, double amount) {
BalanceAdjustResponse resp; BalanceAdjustResponse resp;
try { try {
resp = m_p.api().adjustBalance(playerName, -amount); resp = m_p.api().adjustBalance(playerName, amount);
} catch (IOException e) { } catch (IOException e) {
return new EconomyResponse(0, 0, ResponseType.FAILURE, "Could not contact api.camin.us."); return new EconomyResponse(0, 0, ResponseType.FAILURE, "Could not contact api.camin.us.");
} }