Add decode for ResourcePackClientResponse (fields unknown)

This commit is contained in:
Dylan K. Taylor 2016-10-12 14:34:13 +01:00
parent df88e9272e
commit 9497dff3ee

View File

@ -27,8 +27,12 @@ namespace pocketmine\network\protocol;
class ResourcePackClientResponsePacket extends DataPacket{ class ResourcePackClientResponsePacket extends DataPacket{
const NETWORK_ID = Info::RESOURCE_PACK_CLIENT_RESPONSE_PACKET; const NETWORK_ID = Info::RESOURCE_PACK_CLIENT_RESPONSE_PACKET;
public $unknownByte;
public $unknownShort;
public function decode(){ public function decode(){
var_dump($this->buffer); $this->unknownByte = $this->getByte();
$this->unknownShort = $this->getShort();
} }
public function encode(){ public function encode(){