mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Network: Remove legacy Vector3 primitive encode/decode methods
This commit is contained in:
@ -36,11 +36,11 @@ class RespawnPacket extends DataPacket{
|
||||
public $position;
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->position = $this->getVector3Obj();
|
||||
$this->position = $this->getVector3();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
$this->putVector3Obj($this->position);
|
||||
$this->putVector3($this->position);
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
|
Reference in New Issue
Block a user