mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-18 01:14:10 +00:00
Player: remove sendPosition() from public API
plugins shouldn't be touching this for any reason now.
This commit is contained in:
parent
60d80e173b
commit
85ee628a74
@ -2233,7 +2233,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
/**
|
/**
|
||||||
* TODO: remove this
|
* 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->getNetworkSession()->syncMovement($pos, $yaw, $pitch, $mode);
|
||||||
|
|
||||||
$this->ySize = 0;
|
$this->ySize = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user