mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 17:31:06 +01:00
Fixed block lag.
This commit is contained in:
parent
955a78b8fd
commit
017b15c3a6
1 changed files with 3 additions and 11 deletions
|
@ -209,6 +209,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||||
d4 = packet10flying.z;
|
d4 = packet10flying.z;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.player.onGround = packet10flying.g;
|
||||||
this.player.a(true);
|
this.player.a(true);
|
||||||
this.player.move(d5, 0.0D, d4);
|
this.player.move(d5, 0.0D, d4);
|
||||||
this.player.setLocation(d1, d2, d3, f, f1);
|
this.player.setLocation(d1, d2, d3, f, f1);
|
||||||
|
@ -329,19 +330,10 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||||
this.h = 0;
|
this.h = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CraftBukkit start
|
this.player.onGround = packet10flying.g;
|
||||||
int coordX = (int)Math.floor(packet10flying.x);
|
|
||||||
int coordY = (int)Math.floor(packet10flying.y);
|
|
||||||
int coordZ = (int)Math.floor(packet10flying.z);
|
|
||||||
|
|
||||||
if (((Material)this.player.world.getMaterial(coordX, coordY - 1, coordZ)).isSolid()) {
|
|
||||||
this.player.onGround = true;
|
|
||||||
} else {
|
|
||||||
this.player.onGround = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.minecraftServer.serverConfigurationManager.b(this.player);
|
this.minecraftServer.serverConfigurationManager.b(this.player);
|
||||||
this.player.b(this.player.locY - d0, this.player.onGround);
|
this.player.b(this.player.locY - d0, packet10flying.g);
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue