@@ -8,7 +8,7 @@
|
||||
+
|
||||
public class MerchantRecipe {
|
||||
|
||||
public ItemStack buyingItem1;
|
||||
public ItemStack baseCostA;
|
||||
@@ -17,6 +19,18 @@
|
||||
private int demand;
|
||||
public float priceMultiplier;
|
||||
@@ -31,8 +31,8 @@
|
||||
@@ -78,6 +92,7 @@
|
||||
|
||||
public ItemStack getBuyItem1() {
|
||||
int i = this.buyingItem1.getCount();
|
||||
+ if (i <= 0) return ItemStack.b; // CraftBukkit - SPIGOT-5476
|
||||
ItemStack itemstack = this.buyingItem1.cloneItemStack();
|
||||
int i = this.baseCostA.getCount();
|
||||
+ if (i <= 0) return ItemStack.EMPTY; // CraftBukkit - SPIGOT-5476
|
||||
ItemStack itemstack = this.baseCostA.cloneItemStack();
|
||||
int j = Math.max(0, MathHelper.d((float) (i * this.demand) * this.priceMultiplier));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user