mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Player: remove sendPosition() from public API
plugins shouldn't be touching this for any reason now.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user