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("trader", villagerType.getDisplayName()),
|
||||||
Template.of("percentage", "100")), villagerType); //TODO get percentage from player somehow
|
Template.of("percentage", "100")), villagerType); //TODO get percentage from player somehow
|
||||||
for (ItemStack itemStack : villagerType.getBuying()) {
|
for (ItemStack itemStack : villagerType.getBuying()) {
|
||||||
double price = Utilities.price(itemStack);
|
double price = Utilities.getWorth(itemStack);
|
||||||
addItem(itemStack,
|
addItem(itemStack,
|
||||||
getPriceItem(price),
|
getPriceItem(price),
|
||||||
null,
|
null,
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ public class SellGUI extends GUIMerchant {
|
||||||
Template.of("trader", villagerType.getDisplayName()),
|
Template.of("trader", villagerType.getDisplayName()),
|
||||||
Template.of("percentage", "100")), villagerType); //TODO get percentage from player somehow
|
Template.of("percentage", "100")), villagerType); //TODO get percentage from player somehow
|
||||||
for (ItemStack itemStack : villagerType.getSelling()) {
|
for (ItemStack itemStack : villagerType.getSelling()) {
|
||||||
double price = Utilities.price(itemStack);
|
double price = Utilities.getWorth(itemStack);
|
||||||
addItem(itemStack,
|
addItem(itemStack,
|
||||||
getPriceItem(price),
|
getPriceItem(price),
|
||||||
null,
|
null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user