diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-03-26 22:47:35 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-26 22:47:35 +0100 |
commit | 8dc7b55749b74478b68a01e392aa8549ca3e4cfe (patch) | |
tree | dab14b598008c5691a5ebc9987e41fae5dda6ef4 | |
parent | e24b10dfd9d3b716b3c11ce46efd8caf54d52694 (diff) | |
download | craftbukkit-8dc7b55749b74478b68a01e392aa8549ca3e4cfe.tar craftbukkit-8dc7b55749b74478b68a01e392aa8549ca3e4cfe.tar.gz craftbukkit-8dc7b55749b74478b68a01e392aa8549ca3e4cfe.tar.lz craftbukkit-8dc7b55749b74478b68a01e392aa8549ca3e4cfe.tar.xz craftbukkit-8dc7b55749b74478b68a01e392aa8549ca3e4cfe.zip |
Reset 'stance' to something valid after receiving a broken one. Hopefully stops the server from falling over.
-rw-r--r-- | src/main/java/net/minecraft/server/NetServerHandler.java | 1 |
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 08e8b049..1c1e8c37 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -218,6 +218,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener { if (d4 > 1.65D || d4 < 0.1D) { this.a("Illegal stance"); a.warning(this.e.name + " had an illegal stance: " + d4); + d4 = 1.62D; // CraftBukkit - reset the stance to 'the normal' height } } |