Network: Remove legacy Vector3 primitive encode/decode methods

This commit is contained in:
Dylan K. Taylor
2018-01-20 10:58:39 +00:00
parent 2eb6e075ae
commit 95d42b9907
15 changed files with 52 additions and 78 deletions

View File

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