From a6b8b80fad8f966b82156fe16b2bcd02cb019049 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 18 Jun 2011 14:35:51 -0700 Subject: [PATCH] Added PlayerToggleSneakEvent.isSneaking(). --- src/main/java/net/minecraft/server/NetServerHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index c5b2b9c46b..fb9ec17c40 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -815,7 +815,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener { if (packet19entityaction.animation == 1 || packet19entityaction.animation == 2) { Player player = getPlayer(); - PlayerToggleSneakEvent event = new PlayerToggleSneakEvent(player); + PlayerToggleSneakEvent event = new PlayerToggleSneakEvent(player, packet19entityaction.animation == 1); server.getPluginManager().callEvent(event); if (event.isCancelled()) { return;