Changed confusing MovePlayerPacket field name to be consistent with other packets

This commit is contained in:
Dylan K. Taylor 2017-10-10 21:56:17 +01:00
parent 76469e1d5f
commit 287f08cbd1
2 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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);