Update for 1.0.0
This commit is contained in:
@@ -62,7 +62,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
return i;
|
||||
}
|
||||
|
||||
public ItemStack b() {
|
||||
public ItemStack k_() {
|
||||
int i = this.findDispenseSlot();
|
||||
// CraftBukkit end
|
||||
|
||||
@@ -88,13 +88,13 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
|
||||
public void a(NBTTagCompound nbttagcompound) {
|
||||
super.a(nbttagcompound);
|
||||
NBTTagList nbttaglist = nbttagcompound.l("Items");
|
||||
NBTTagList nbttaglist = nbttagcompound.m("Items");
|
||||
|
||||
this.items = new ItemStack[this.getSize()];
|
||||
|
||||
for (int i = 0; i < nbttaglist.c(); ++i) {
|
||||
for (int i = 0; i < nbttaglist.d(); ++i) {
|
||||
NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.a(i);
|
||||
int j = nbttagcompound1.c("Slot") & 255;
|
||||
int j = nbttagcompound1.d("Slot") & 255;
|
||||
|
||||
if (j >= 0 && j < this.items.length) {
|
||||
this.items[j] = ItemStack.a(nbttagcompound1);
|
||||
@@ -127,7 +127,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
return this.world.getTileEntity(this.x, this.y, this.z) != this ? false : entityhuman.e((double) this.x + 0.5D, (double) this.y + 0.5D, (double) this.z + 0.5D) <= 64.0D;
|
||||
}
|
||||
|
||||
public void e() {}
|
||||
public void f() {}
|
||||
|
||||
public void t_() {}
|
||||
public void g() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user