mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
Reset 'stance' to something valid after receiving a broken one. Hopefully stops the server from falling over.
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user