3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

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

Dieser Commit ist enthalten in:
Erik Broes 2011-03-26 22:47:35 +01:00
Ursprung e24b10dfd9
Commit 8dc7b55749

Datei anzeigen

@ -218,6 +218,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
if (d4 > 1.65D || d4 < 0.1D) { if (d4 > 1.65D || d4 < 0.1D) {
this.a("Illegal stance"); this.a("Illegal stance");
a.warning(this.e.name + " had an illegal stance: " + d4); a.warning(this.e.name + " had an illegal stance: " + d4);
d4 = 1.62D; // CraftBukkit - reset the stance to 'the normal' height
} }
} }