Update to Minecraft Server 1.2

This commit is contained in:
Dinnerbone
2011-01-14 13:31:10 +00:00
parent e6e50ddf9b
commit 2761b59845
55 changed files with 1219 additions and 1064 deletions

View File

@@ -8,7 +8,7 @@ public class InventoryLargeChest implements IInventory {
// CraftBukkit start
public ItemStack[] getContents() {
ItemStack[] result = new ItemStack[a()];
ItemStack[] result = new ItemStack[h_()];
for (int i = 0; i < result.length; i++) {
result[i] = a(i);
}
@@ -22,8 +22,8 @@ public class InventoryLargeChest implements IInventory {
c = iinventory1;
}
public int a() {
return b.a() + c.a();
public int h_() {
return b.h_() + c.h_();
}
public String b() {
@@ -31,24 +31,24 @@ public class InventoryLargeChest implements IInventory {
}
public ItemStack a(int i) {
if (i >= b.a()) {
return c.a(i - b.a());
if (i >= b.h_()) {
return c.a(i - b.h_());
} else {
return b.a(i);
}
}
public ItemStack a(int i, int j) {
if (i >= b.a()) {
return c.a(i - b.a(), j);
public ItemStack b(int i, int j) {
if (i >= b.h_()) {
return c.b(i - b.h_(), j);
} else {
return b.a(i, j);
return b.b(i, j);
}
}
public void a(int i, ItemStack itemstack) {
if (i >= b.a()) {
c.a(i - b.a(), itemstack);
if (i >= b.h_()) {
c.a(i - b.h_(), itemstack);
} else {
b.a(i, itemstack);
}