mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Network: Remove legacy Vector3 primitive encode/decode methods
This commit is contained in:
@ -60,7 +60,7 @@ class MovePlayerPacket extends DataPacket{
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->entityRuntimeId = $this->getEntityRuntimeId();
|
||||
$this->position = $this->getVector3Obj();
|
||||
$this->position = $this->getVector3();
|
||||
$this->pitch = $this->getLFloat();
|
||||
$this->yaw = $this->getLFloat();
|
||||
$this->headYaw = $this->getLFloat();
|
||||
@ -75,7 +75,7 @@ class MovePlayerPacket extends DataPacket{
|
||||
|
||||
protected function encodePayload(){
|
||||
$this->putEntityRuntimeId($this->entityRuntimeId);
|
||||
$this->putVector3Obj($this->position);
|
||||
$this->putVector3($this->position);
|
||||
$this->putLFloat($this->pitch);
|
||||
$this->putLFloat($this->yaw);
|
||||
$this->putLFloat($this->headYaw); //TODO
|
||||
|
Reference in New Issue
Block a user