From f6875705a10dec5211bca398bf4e8c524d33a6ba Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 8 Oct 2017 11:25:27 +0100 Subject: [PATCH] Found fields of PhotoTransferPacket now if we could only get portfolios... --- .../mcpe/protocol/PhotoTransferPacket.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/PhotoTransferPacket.php b/src/pocketmine/network/mcpe/protocol/PhotoTransferPacket.php index 3283ecd77..1ecb01c74 100644 --- a/src/pocketmine/network/mcpe/protocol/PhotoTransferPacket.php +++ b/src/pocketmine/network/mcpe/protocol/PhotoTransferPacket.php @@ -31,22 +31,22 @@ class PhotoTransferPacket extends DataPacket{ const NETWORK_ID = ProtocolInfo::PHOTO_TRANSFER_PACKET; /** @var string */ - public $string1; + public $photoName; /** @var string */ - public $string2; + public $photoData; /** @var string */ - public $string3; + public $bookId; //photos are stored in a sibling directory to the games folder (screenshots/(some UUID)/bookID/example.png) protected function decodePayload(){ - $this->string1 = $this->getString(); - $this->string2 = $this->getString(); - $this->string3 = $this->getString(); + $this->photoName = $this->getString(); + $this->photoData = $this->getString(); + $this->bookId = $this->getString(); } protected function encodePayload(){ - $this->putString($this->string1); - $this->putString($this->string2); - $this->putString($this->string3); + $this->putString($this->photoName); + $this->putString($this->photoData); + $this->putString($this->bookId); } public function handle(NetworkSession $session) : bool{