diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-05-04 21:08:43 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-05-04 21:08:43 -0400 |
commit | 41a2bc9690591c086d5b3a0be78e3da7afed7d80 (patch) | |
tree | dd8645ef3826fbcc8282dd29063374076f794547 /src/main | |
parent | 93708cb7485c259cb03031fb6bba1144c4f5415f (diff) | |
download | craftbukkit-41a2bc9690591c086d5b3a0be78e3da7afed7d80.tar craftbukkit-41a2bc9690591c086d5b3a0be78e3da7afed7d80.tar.gz craftbukkit-41a2bc9690591c086d5b3a0be78e3da7afed7d80.tar.lz craftbukkit-41a2bc9690591c086d5b3a0be78e3da7afed7d80.tar.xz craftbukkit-41a2bc9690591c086d5b3a0be78e3da7afed7d80.zip |
Fixed crafting 'lag' introduced by additions to the Crafting API.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/NetServerHandler.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 6cee628b..d314c7c0 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -830,13 +830,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener { public void a(Packet102WindowClick packet102windowclick) { if (this.player.activeContainer.f == packet102windowclick.a && this.player.activeContainer.c(this.player)) { ItemStack itemstack = this.player.activeContainer.a(packet102windowclick.b, packet102windowclick.c, packet102windowclick.f, this.player); - // CraftBukkit start - boolean clickSuccessful = ItemStack.equals(packet102windowclick.e, itemstack); - if ((this.player.activeContainer instanceof ContainerWorkbench || this.player.activeContainer instanceof ContainerPlayer) && packet102windowclick.b == 0) { - clickSuccessful = false; - } - // CraftBukkit end - if (clickSuccessful) { // CraftBukkit - extracted to local variable + if (ItemStack.equals(packet102windowclick.e, itemstack)) { this.player.netServerHandler.sendPacket(new Packet106Transaction(packet102windowclick.a, packet102windowclick.d, true)); this.player.h = true; this.player.activeContainer.a(); |