Don't display - in prices/points when selling/buying
This commit is contained in:
parent
ac0f050071
commit
d9be83ae62
|
|
@ -126,7 +126,7 @@ public class BuyGUI extends GUIMerchant {
|
|||
Template.template("amount", String.valueOf(purchase.amount())),
|
||||
Template.template("item", StringUtils.capitalize(purchase.material().name()
|
||||
.toLowerCase().replaceAll("_", " "))),
|
||||
Template.template("price", "-" + String.format("%,.2f", purchase.price())),
|
||||
Template.template("price", String.format("%,.2f", purchase.price())),
|
||||
Template.template("points", String.valueOf(purchase.totalPointCost())),
|
||||
Template.template("total_points", String.valueOf(newPoints)),
|
||||
Template.template("villager_name", villagerType.getDisplayName())
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ public class SellGUI extends GUIMerchant {
|
|||
Template.template("amount", String.valueOf(purchase.amount())),
|
||||
Template.template("item", StringUtils.capitalize(purchase.material().name()
|
||||
.toLowerCase().replaceAll("_", " "))),
|
||||
Template.template("price", String.format("%,.2f", purchase.price() * -1)),
|
||||
Template.template("price", String.format("%,.2f", purchase.price())),
|
||||
Template.template("points", String.valueOf(-purchase.totalPointCost())),
|
||||
Template.template("total_points", String.valueOf(newPoints)),
|
||||
Template.template("villager_name", villagerType.getDisplayName())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user