Updated CraftBukkit to 1.2

This commit is contained in:
Nathan Adams
2012-03-01 10:49:23 +00:00
parent e9ca87000c
commit 543c4879fe
143 changed files with 3710 additions and 4433 deletions

View File

@@ -68,7 +68,18 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
}
}
// CraftBukkit - change signature
public ItemStack splitWithoutUpdate(int i) {
if (this.items[i] != null) {
ItemStack itemstack = this.items[i];
this.items[i] = null;
return itemstack;
} else {
return null;
}
}
// CraftBukkit start - move code out from p_
public int findDispenseSlot() {
int i = -1;
int j = 1;
@@ -79,12 +90,10 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
i = k;
}
}
// CraftBukkit start
return i;
}
public ItemStack k_() {
public ItemStack p_() {
int i = this.findDispenseSlot();
// CraftBukkit end
@@ -105,7 +114,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
}
public String getName() {
return "Trap";
return "container.dispenser";
}
public void a(NBTTagCompound nbttagcompound) {