Update CraftBukkit to Minecraft 1.7.2
This commit is contained in:
@@ -21,6 +21,7 @@ public class ContainerMerchant extends Container {
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
|
||||
public ContainerMerchant(PlayerInventory playerinventory, IMerchant imerchant, World world) {
|
||||
this.merchant = imerchant;
|
||||
this.g = world;
|
||||
@@ -65,7 +66,7 @@ public class ContainerMerchant extends Container {
|
||||
}
|
||||
|
||||
public boolean a(EntityHuman entityhuman) {
|
||||
return this.merchant.m_() == entityhuman;
|
||||
return this.merchant.b() == entityhuman;
|
||||
}
|
||||
|
||||
public ItemStack b(EntityHuman entityhuman, int i) {
|
||||
@@ -118,12 +119,12 @@ public class ContainerMerchant extends Container {
|
||||
ItemStack itemstack = this.f.splitWithoutUpdate(0);
|
||||
|
||||
if (itemstack != null) {
|
||||
entityhuman.drop(itemstack);
|
||||
entityhuman.drop(itemstack, false);
|
||||
}
|
||||
|
||||
itemstack = this.f.splitWithoutUpdate(1);
|
||||
if (itemstack != null) {
|
||||
entityhuman.drop(itemstack);
|
||||
entityhuman.drop(itemstack, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user