Remove this workaround (client bug fixed in 1.0.5 beta)

This commit is contained in:
Dylan K. Taylor 2017-03-19 21:58:12 +00:00
parent 36cda5de61
commit 4638ccbb68

View File

@ -2092,10 +2092,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
public function handleMovePlayer(MovePlayerPacket $packet) : bool{
$newPos = new Vector3($packet->x, $packet->y - $this->getEyeHeight(), $packet->z);
if($newPos->distanceSquared($this) == 0 and ($packet->yaw % 360) === $this->yaw and ($packet->pitch % 360) === $this->pitch){ //player hasn't moved, just client spamming packets
return true;
}
$revert = false;
if(!$this->isAlive() or $this->spawned !== true){
$revert = true;