mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 15:19:56 +00:00
Remove this workaround (client bug fixed in 1.0.5 beta)
This commit is contained in:
parent
36cda5de61
commit
4638ccbb68
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user