Reset 'stance' to something valid after receiving a broken one. Hopefully stops the server from falling over.

This commit is contained in:
Erik Broes 2011-03-26 22:47:35 +01:00
parent e24b10dfd9
commit 8dc7b55749

View File

@ -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
}
}