@@ -1,9 +1,9 @@
|
||||
--- a/net/minecraft/world/item/trading/IMerchant.java
|
||||
+++ b/net/minecraft/world/item/trading/IMerchant.java
|
||||
@@ -53,4 +53,6 @@
|
||||
}
|
||||
|
||||
@@ -52,4 +52,6 @@
|
||||
}
|
||||
|
||||
boolean isClientSide();
|
||||
+
|
||||
+ org.bukkit.craftbukkit.inventory.CraftMerchant getCraftMerchant(); // CraftBukkit
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
this.rewardExp = true;
|
||||
@@ -78,6 +92,7 @@
|
||||
|
||||
public ItemStack getBuyItem1() {
|
||||
public ItemStack getCostA() {
|
||||
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));
|
||||
ItemStack itemstack = this.baseCostA.copy();
|
||||
int j = Math.max(0, MathHelper.floor((float) (i * this.demand) * this.priceMultiplier));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user