mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 21:45:35 +00:00
Changed confusing MovePlayerPacket field name to be consistent with other packets
This commit is contained in:
parent
76469e1d5f
commit
287f08cbd1
@ -3631,8 +3631,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
$pk = new MovePlayerPacket();
|
||||
$pk->entityRuntimeId = $this->getId();
|
||||
$pk->position = $this->getOffsetPosition($pos);
|
||||
$pk->bodyYaw = $yaw;
|
||||
$pk->pitch = $pitch;
|
||||
$pk->headYaw = $yaw;
|
||||
$pk->yaw = $yaw;
|
||||
$pk->mode = $mode;
|
||||
|
||||
|
@ -42,11 +42,11 @@ class MovePlayerPacket extends DataPacket{
|
||||
/** @var Vector3 */
|
||||
public $position;
|
||||
/** @var float */
|
||||
public $yaw;
|
||||
/** @var float */
|
||||
public $bodyYaw;
|
||||
/** @var float */
|
||||
public $pitch;
|
||||
/** @var float */
|
||||
public $headYaw;
|
||||
/** @var float */
|
||||
public $yaw;
|
||||
/** @var int */
|
||||
public $mode = self::MODE_NORMAL;
|
||||
/** @var bool */
|
||||
@ -62,8 +62,8 @@ class MovePlayerPacket extends DataPacket{
|
||||
$this->entityRuntimeId = $this->getEntityRuntimeId();
|
||||
$this->position = $this->getVector3Obj();
|
||||
$this->pitch = $this->getLFloat();
|
||||
$this->headYaw = $this->getLFloat();
|
||||
$this->yaw = $this->getLFloat();
|
||||
$this->bodyYaw = $this->getLFloat();
|
||||
$this->mode = $this->getByte();
|
||||
$this->onGround = $this->getBool();
|
||||
$this->ridingEid = $this->getEntityRuntimeId();
|
||||
@ -77,8 +77,8 @@ class MovePlayerPacket extends DataPacket{
|
||||
$this->putEntityRuntimeId($this->entityRuntimeId);
|
||||
$this->putVector3Obj($this->position);
|
||||
$this->putLFloat($this->pitch);
|
||||
$this->putLFloat($this->headYaw); //TODO
|
||||
$this->putLFloat($this->yaw);
|
||||
$this->putLFloat($this->bodyYaw); //TODO
|
||||
$this->putByte($this->mode);
|
||||
$this->putBool($this->onGround);
|
||||
$this->putEntityRuntimeId($this->ridingEid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user