mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 12:43:52 -07:00
Updated to Minecraft version 1.4
This commit is contained in:
@@ -15,7 +15,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
|
||||
public TileEntityDispenser() {}
|
||||
|
||||
public int m_() {
|
||||
public int q_() {
|
||||
return 9;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
if (this.a[i].count <= j) {
|
||||
itemstack = this.a[i];
|
||||
this.a[i] = null;
|
||||
this.h();
|
||||
this.i();
|
||||
return itemstack;
|
||||
} else {
|
||||
itemstack = this.a[i].a(j);
|
||||
@@ -38,7 +38,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
this.a[i] = null;
|
||||
}
|
||||
|
||||
this.h();
|
||||
this.i();
|
||||
return itemstack;
|
||||
}
|
||||
} else {
|
||||
@@ -66,11 +66,11 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
|
||||
public void a(int i, ItemStack itemstack) {
|
||||
this.a[i] = itemstack;
|
||||
if (itemstack != null && itemstack.count > this.n_()) {
|
||||
itemstack.count = this.n_();
|
||||
if (itemstack != null && itemstack.count > this.r_()) {
|
||||
itemstack.count = this.r_();
|
||||
}
|
||||
|
||||
this.h();
|
||||
this.i();
|
||||
}
|
||||
|
||||
public String c() {
|
||||
@@ -81,7 +81,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
super.a(nbttagcompound);
|
||||
NBTTagList nbttaglist = nbttagcompound.l("Items");
|
||||
|
||||
this.a = new ItemStack[this.m_()];
|
||||
this.a = new ItemStack[this.q_()];
|
||||
|
||||
for (int i = 0; i < nbttaglist.c(); ++i) {
|
||||
NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.a(i);
|
||||
@@ -110,7 +110,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
||||
nbttagcompound.a("Items", (NBTBase) nbttaglist);
|
||||
}
|
||||
|
||||
public int n_() {
|
||||
public int r_() {
|
||||
return 64;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user