diff --git a/src/main/java/com/alttd/GUI/windows/BuyGUI.java b/src/main/java/com/alttd/GUI/windows/BuyGUI.java index 9a5b963..634ddd3 100644 --- a/src/main/java/com/alttd/GUI/windows/BuyGUI.java +++ b/src/main/java/com/alttd/GUI/windows/BuyGUI.java @@ -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, diff --git a/src/main/java/com/alttd/GUI/windows/SellGUI.java b/src/main/java/com/alttd/GUI/windows/SellGUI.java index 5ac015c..2004a58 100644 --- a/src/main/java/com/alttd/GUI/windows/SellGUI.java +++ b/src/main/java/com/alttd/GUI/windows/SellGUI.java @@ -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,