Moved price and it's methods to Utilities

This commit is contained in:
Teriuihi 2021-09-25 03:23:36 +02:00
parent 22e05d140f
commit 980448f9e7
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ public class BuyGUI extends GUIMerchant {
Template.of("trader", villagerType.getDisplayName()),
Template.of("percentage", "100")), villagerType); //TODO get percentage from player somehow
for (ItemStack itemStack : villagerType.getBuying()) {
double price = Utilities.price(itemStack);
double price = Utilities.getWorth(itemStack);
addItem(itemStack,
getPriceItem(price),
null,

View File

@ -19,7 +19,7 @@ public class SellGUI extends GUIMerchant {
Template.of("trader", villagerType.getDisplayName()),
Template.of("percentage", "100")), villagerType); //TODO get percentage from player somehow
for (ItemStack itemStack : villagerType.getSelling()) {
double price = Utilities.price(itemStack);
double price = Utilities.getWorth(itemStack);
addItem(itemStack,
getPriceItem(price),
null,