summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-06-18 14:35:51 -0700
committersk89q <the.sk89q@gmail.com>2011-06-18 14:35:51 -0700
commita6b8b80fad8f966b82156fe16b2bcd02cb019049 (patch)
tree6f7c49a5e46c711c71e489532ca14d48ae0eddb6 /src/main/java/net/minecraft/server
parent4cefee5be7d8595042a6752f044df7268fd6754d (diff)
downloadcraftbukkit-a6b8b80fad8f966b82156fe16b2bcd02cb019049.tar
craftbukkit-a6b8b80fad8f966b82156fe16b2bcd02cb019049.tar.gz
craftbukkit-a6b8b80fad8f966b82156fe16b2bcd02cb019049.tar.lz
craftbukkit-a6b8b80fad8f966b82156fe16b2bcd02cb019049.tar.xz
craftbukkit-a6b8b80fad8f966b82156fe16b2bcd02cb019049.zip
Added PlayerToggleSneakEvent.isSneaking().
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index c5b2b9c4..fb9ec17c 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;