From 8dc7b55749b74478b68a01e392aa8549ca3e4cfe Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Sat, 26 Mar 2011 22:47:35 +0100 Subject: Reset 'stance' to something valid after receiving a broken one. Hopefully stops the server from falling over. --- src/main/java/net/minecraft/server/NetServerHandler.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/net/minecraft/server') 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 } } -- cgit v1.2.3