diff options
author | Rigby <rigby@onarandombox.com> | 2011-06-22 04:04:11 +0100 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-06-22 12:49:50 -0400 |
commit | 7efaa1a02ee109de907d07e9ed21dd603258e951 (patch) | |
tree | 6628556558a41c42666bba9f936f97b7efa8da43 /src/main/java | |
parent | 568731f29c104fc18b8fff888c7f4a69baf88946 (diff) | |
download | craftbukkit-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.java | 3 |
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 |