mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-25 06:54:41 +00:00
Removed teleport zero-offsets (not needed in 1.2)
This commit is contained in:
parent
36d47a33f3
commit
d3d1e32309
@ -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;
|
$yaw = $yaw ?? $this->yaw;
|
||||||
$pitch = $pitch ?? $this->pitch;
|
$pitch = $pitch ?? $this->pitch;
|
||||||
|
|
||||||
@ -3789,8 +3789,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$this->removeWindow($window);
|
$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->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT, $this->getViewers(), 0.0);
|
$this->sendPosition($this, $this->yaw, $this->pitch, MovePlayerPacket::MODE_TELEPORT, $this->getViewers());
|
||||||
|
|
||||||
$this->spawnToAll();
|
$this->spawnToAll();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user