mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Cleaned up some bad code in DataPacket, added encode/decodeHeader and made encode/decodePayload protected
This commit is contained in:
@ -36,12 +36,12 @@ class SpawnExperienceOrbPacket extends DataPacket{
|
||||
public $z;
|
||||
public $amount;
|
||||
|
||||
public function decodePayload(){
|
||||
protected function decodePayload(){
|
||||
$this->getVector3f($this->x, $this->y, $this->z);
|
||||
$this->amount = $this->getVarInt();
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
protected function encodePayload(){
|
||||
$this->putVector3f($this->x, $this->y, $this->z);
|
||||
$this->putVarInt($this->amount);
|
||||
}
|
||||
|
Reference in New Issue
Block a user