diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-14 13:31:10 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-14 13:31:10 +0000 |
commit | 2761b598452d992b05a384528b54298ab1166456 (patch) | |
tree | fae206cadbc7acd2607b42ac9dc3d962dcaa795a /src/main/java/net/minecraft/server/InventoryLargeChest.java | |
parent | e6e50ddf9b7cb9fe4fb5e8102acf117db2db6f2a (diff) | |
download | craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar.gz craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar.lz craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar.xz craftbukkit-2761b598452d992b05a384528b54298ab1166456.zip |
Update to Minecraft Server 1.2
Diffstat (limited to 'src/main/java/net/minecraft/server/InventoryLargeChest.java')
-rw-r--r-- | src/main/java/net/minecraft/server/InventoryLargeChest.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/main/java/net/minecraft/server/InventoryLargeChest.java b/src/main/java/net/minecraft/server/InventoryLargeChest.java index ff6aaab9..a766cb4f 100644 --- a/src/main/java/net/minecraft/server/InventoryLargeChest.java +++ b/src/main/java/net/minecraft/server/InventoryLargeChest.java @@ -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);
}
|