Removed teleport zero-offsets (not needed in 1.2)

This commit is contained in:
Dylan K. Taylor 2017-08-09 17:01:56 +01:00
parent 36d47a33f3
commit d3d1e32309

View File

@ -3753,7 +3753,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
}
}
public function sendPosition(Vector3 $pos, float $yaw = null, float $pitch = null, int $mode = MovePlayerPacket::MODE_NORMAL, array $targets = null, float $baseOffsetOverride = null){
public function sendPosition(Vector3 $pos, float $yaw = null, float $pitch = null, int $mode = MovePlayerPacket::MODE_NORMAL, array $targets = null){
$yaw = $yaw ?? $this->yaw;
$pitch = $pitch ?? $this->pitch;
@ -3789,8 +3789,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->removeWindow($window);
}
$this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT, null, 0.0);
$this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT, $this->getViewers(), 0.0);
$this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT);
$this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT, $this->getViewers());
$this->spawnToAll();