Moved price and it's methods to Utilities
This commit is contained in:
parent
22e05d140f
commit
980448f9e7
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user