diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-10-24 22:53:23 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-27 22:19:03 -0400 |
commit | 60819c6693daf19dde68b04af38a4fee8c7da988 (patch) | |
tree | e7bd96a07f0e9d9f1f6b2721ddd1bb5dd71eaf48 /src/main/java/net/minecraft/server/InventoryCraftResult.java | |
parent | b9a72531b6e2ccc84bd021bca421255a957d96f7 (diff) | |
download | craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.gz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.lz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.xz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.zip |
Update CraftBukkit to Minecraft 1.4(.2).
Diffstat (limited to 'src/main/java/net/minecraft/server/InventoryCraftResult.java')
-rw-r--r-- | src/main/java/net/minecraft/server/InventoryCraftResult.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/net/minecraft/server/InventoryCraftResult.java b/src/main/java/net/minecraft/server/InventoryCraftResult.java index f5855d65..065b3a54 100644 --- a/src/main/java/net/minecraft/server/InventoryCraftResult.java +++ b/src/main/java/net/minecraft/server/InventoryCraftResult.java @@ -39,7 +39,7 @@ public class InventoryCraftResult implements IInventory { } public ItemStack getItem(int i) { - return this.items[i]; + return this.items[0]; } public String getName() { @@ -47,10 +47,10 @@ public class InventoryCraftResult implements IInventory { } public ItemStack splitStack(int i, int j) { - if (this.items[i] != null) { - ItemStack itemstack = this.items[i]; + if (this.items[0] != null) { + ItemStack itemstack = this.items[0]; - this.items[i] = null; + this.items[0] = null; return itemstack; } else { return null; @@ -58,10 +58,10 @@ public class InventoryCraftResult implements IInventory { } public ItemStack splitWithoutUpdate(int i) { - if (this.items[i] != null) { - ItemStack itemstack = this.items[i]; + if (this.items[0] != null) { + ItemStack itemstack = this.items[0]; - this.items[i] = null; + this.items[0] = null; return itemstack; } else { return null; @@ -69,7 +69,7 @@ public class InventoryCraftResult implements IInventory { } public void setItem(int i, ItemStack itemstack) { - this.items[i] = itemstack; + this.items[0] = itemstack; } public int getMaxStackSize() { |