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:
@ -41,13 +41,13 @@ class ChangeDimensionPacket extends DataPacket{
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->dimension = $this->getVarInt();
|
||||
$this->position = $this->getVector3Obj();
|
||||
$this->position = $this->getVector3();
|
||||
$this->respawn = $this->getBool();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
$this->putVarInt($this->dimension);
|
||||
$this->putVector3Obj($this->position);
|
||||
$this->putVector3($this->position);
|
||||
$this->putBool($this->respawn);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user