summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-09-16 05:35:37 -0400
committerEvilSeph <evilseph@gmail.com>2011-09-16 05:48:05 -0400
commit76493f9c76cbae03e75832719381304657a2341a (patch)
tree0a35fa90eea4ae58d9623aa66495703063f99a00 /src/main
parent72e5ea6cc3364798b1de7281f024e1ddb589cf86 (diff)
downloadcraftbukkit-76493f9c76cbae03e75832719381304657a2341a.tar
craftbukkit-76493f9c76cbae03e75832719381304657a2341a.tar.gz
craftbukkit-76493f9c76cbae03e75832719381304657a2341a.tar.lz
craftbukkit-76493f9c76cbae03e75832719381304657a2341a.tar.xz
craftbukkit-76493f9c76cbae03e75832719381304657a2341a.zip
Fixed fall distance accumulating while being in Creative mode.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index c695963a..5b1e9939 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -371,6 +371,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
this.player.onGround = packet10flying.g;
this.minecraftServer.serverConfigurationManager.d(this.player);
+ if (this.player.itemInWorldManager.b()) return; // CraftBukkit - fixed fall distance accumulating while being in Creative mode.
this.player.b(this.player.locY - d0, packet10flying.g);
}
}