summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorRigby <rigby@onarandombox.com>2011-06-22 04:04:11 +0100
committerEvilSeph <evilseph@unaligned.org>2011-06-22 12:49:50 -0400
commit7efaa1a02ee109de907d07e9ed21dd603258e951 (patch)
tree6628556558a41c42666bba9f936f97b7efa8da43 /src/main/java
parent568731f29c104fc18b8fff888c7f4a69baf88946 (diff)
downloadcraftbukkit-7efaa1a02ee109de907d07e9ed21dd603258e951.tar
craftbukkit-7efaa1a02ee109de907d07e9ed21dd603258e951.tar.gz
craftbukkit-7efaa1a02ee109de907d07e9ed21dd603258e951.tar.lz
craftbukkit-7efaa1a02ee109de907d07e9ed21dd603258e951.tar.xz
craftbukkit-7efaa1a02ee109de907d07e9ed21dd603258e951.zip
Inform the client when a move event is cancelled.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index 451d9978..ed64986d 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -141,7 +141,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
// If the event is cancelled we move the player back to their old location.
if (event.isCancelled()) {
- to = from;
+ this.player.netServerHandler.sendPacket(new Packet13PlayerLookMove(from.getX(), from.getY() + 1.6200000047683716D, from.getY(), from.getZ(), from.getYaw(), from.getPitch(), false));
+ return;
}
/* If a Plugin has changed the To destination then we teleport the Player