Round shop balance and price per item.
This commit is contained in:
@@ -65,7 +65,7 @@ public class PlayerShop {
|
||||
playerShop.server = server;
|
||||
playerShop.price = price;
|
||||
playerShop.amount = amount;
|
||||
playerShop.balance = balance;
|
||||
playerShop.balance = EconomyUtils.round(balance);
|
||||
playerShop.itemStack = item;
|
||||
playerShop.lastTransaction = lastTransaction;
|
||||
|
||||
@@ -193,7 +193,7 @@ public class PlayerShop {
|
||||
}
|
||||
|
||||
public double getPricePerItem() {
|
||||
return this.getPrice() / this.getAmount();
|
||||
return EconomyUtils.round(this.getPrice() / this.getAmount());
|
||||
}
|
||||
|
||||
public boolean removeBalance(double amount) {
|
||||
|
||||
Reference in New Issue
Block a user