|
|
|
@ -128,13 +128,14 @@ public class NetServerHandler extends NetHandler
|
|
|
|
|
|
|
|
|
|
if (!this.field_72587_r)
|
|
|
|
|
{
|
|
|
|
|
// var3 = par1Packet10Flying.yPosition - this.lastPosY;
|
|
|
|
|
//
|
|
|
|
|
// if (par1Packet10Flying.xPosition.compareTo(this.lastPosX) == 0 && var3 * var3 < 0.01D && par1Packet10Flying.zPosition.compareTo(this.lastPosZ) == 0)
|
|
|
|
|
// {
|
|
|
|
|
// this.field_72587_r = true;
|
|
|
|
|
// }
|
|
|
|
|
this.field_72587_r = true;
|
|
|
|
|
var3 = par1Packet10Flying.yPosition - this.lastPosY;
|
|
|
|
|
|
|
|
|
|
if (par1Packet10Flying.xPosition.compareTo(this.lastPosX) == 0 && var3 * var3 < 0.01D && par1Packet10Flying.zPosition.compareTo(this.lastPosZ) == 0)
|
|
|
|
|
{
|
|
|
|
|
this.field_72587_r = true;
|
|
|
|
|
} else {
|
|
|
|
|
this.playerEntity.serverForThisPlayer.sendPacketToPlayer(new Packet11PlayerPosition(this.lastPosX, this.lastPosY + 1.6200000047683716D, this.lastPosY, this.lastPosZ, false));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.field_72587_r)
|
|
|
|
|