diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-15 18:01:13 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-15 18:01:13 +0100 |
commit | 9252230e3a2ce6d1169cb96097d2ebc160e3fedb (patch) | |
tree | d57ffec457b18f87cb840b40609ea3c1ae60be5d /src/main/java/net/minecraft/server/ContainerWorkbench.java | |
parent | 2b5a61f03d135a3f4e82bc6f4b2b8ea47abd5dcb (diff) | |
download | craftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.tar craftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.tar.gz craftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.tar.lz craftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.tar.xz craftbukkit-9252230e3a2ce6d1169cb96097d2ebc160e3fedb.zip |
Update for Minecraft 1.8.1
Diffstat (limited to 'src/main/java/net/minecraft/server/ContainerWorkbench.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ContainerWorkbench.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/main/java/net/minecraft/server/ContainerWorkbench.java b/src/main/java/net/minecraft/server/ContainerWorkbench.java index 221cc768..f0e29fa0 100644 --- a/src/main/java/net/minecraft/server/ContainerWorkbench.java +++ b/src/main/java/net/minecraft/server/ContainerWorkbench.java @@ -77,13 +77,19 @@ public class ContainerWorkbench extends Container { itemstack = itemstack1.cloneItemStack(); if (i == 0) { - this.a(itemstack1, 10, 46, true); + if (!this.a(itemstack1, 10, 46, true)) { + return null; + } } else if (i >= 10 && i < 37) { - this.a(itemstack1, 37, 46, false); + if (!this.a(itemstack1, 37, 46, false)) { + return null; + } } else if (i >= 37 && i < 46) { - this.a(itemstack1, 10, 37, false); - } else { - this.a(itemstack1, 10, 46, false); + if (!this.a(itemstack1, 10, 37, false)) { + return null; + } + } else if (!this.a(itemstack1, 10, 46, false)) { + return null; } if (itemstack1.count == 0) { |