mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 17:20:02 +00:00
AddPlayerPacket: missing field
This commit is contained in:
parent
38c759c86e
commit
c428596009
@ -74,6 +74,8 @@ class AddPlayerPacket extends DataPacket{
|
|||||||
|
|
||||||
/** @var string */
|
/** @var string */
|
||||||
public $deviceId = ""; //TODO: fill player's device ID (???)
|
public $deviceId = ""; //TODO: fill player's device ID (???)
|
||||||
|
/** @var int */
|
||||||
|
public $buildPlatform = -1;
|
||||||
|
|
||||||
protected function decodePayload(){
|
protected function decodePayload(){
|
||||||
$this->uuid = $this->getUUID();
|
$this->uuid = $this->getUUID();
|
||||||
@ -103,6 +105,7 @@ class AddPlayerPacket extends DataPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->deviceId = $this->getString();
|
$this->deviceId = $this->getString();
|
||||||
|
$this->buildPlatform = $this->getLInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function encodePayload(){
|
protected function encodePayload(){
|
||||||
@ -133,6 +136,7 @@ class AddPlayerPacket extends DataPacket{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->putString($this->deviceId);
|
$this->putString($this->deviceId);
|
||||||
|
$this->putLInt($this->buildPlatform);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle(NetworkSession $session) : bool{
|
public function handle(NetworkSession $session) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user