Player: remove sendPosition() from public API

plugins shouldn't be touching this for any reason now.
This commit is contained in:
Dylan K. Taylor 2021-06-21 20:08:43 +01:00
parent 60d80e173b
commit 85ee628a74
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -2233,7 +2233,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
/**
* TODO: remove this
*/
public function sendPosition(Vector3 $pos, ?float $yaw = null, ?float $pitch = null, int $mode = MovePlayerPacket::MODE_NORMAL) : void{
protected function sendPosition(Vector3 $pos, ?float $yaw = null, ?float $pitch = null, int $mode = MovePlayerPacket::MODE_NORMAL) : void{
$this->getNetworkSession()->syncMovement($pos, $yaw, $pitch, $mode);
$this->ySize = 0;