mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected
This commit is contained in:
@ -35,11 +35,11 @@ class RespawnPacket extends DataPacket{
|
||||
public $y;
|
||||
public $z;
|
||||
|
||||
public function decodePayload(){
|
||||
protected function decodePayload(){
|
||||
$this->getVector3f($this->x, $this->y, $this->z);
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
protected function encodePayload(){
|
||||
$this->putVector3f($this->x, $this->y, $this->z);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user