From 817cd83f0b966356fcc5a058afe36c017aadaaac Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 28 Jul 2011 10:53:55 -0400 Subject: [PATCH] Made PlayerAnimation cancellable. Thanks desmin88! --- src/main/java/net/minecraft/server/NetServerHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index b72a8119fe..4744063d56 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -785,6 +785,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener { // Arm swing animation PlayerAnimationEvent event = new PlayerAnimationEvent(this.getPlayer()); this.server.getPluginManager().callEvent(event); + + if (event.isCancelled()) return; // CraftBukkit end this.player.w();