mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Dummy decode for ResourcePacksInfoPacket and ResourcePackStackPacket
while we can't deal with this information, it's needed for the sake of unit testing so we don't shit on every bit of incoming data of these packet types.
This commit is contained in:
parent
2858db430e
commit
d9220395d1
@ -42,20 +42,20 @@ class ResourcePackStackPacket extends DataPacket{
|
||||
public $resourcePackStack = [];
|
||||
|
||||
protected function decodePayload(){
|
||||
/*$this->mustAccept = $this->getBool();
|
||||
$this->mustAccept = $this->getBool();
|
||||
$behaviorPackCount = $this->getUnsignedVarInt();
|
||||
while($behaviorPackCount-- > 0){
|
||||
$packId = $this->getString();
|
||||
$version = $this->getString();
|
||||
$this->behaviorPackStack[] = new ResourcePackInfoEntry($packId, $version);
|
||||
$this->getString();
|
||||
$this->getString();
|
||||
$this->getString();
|
||||
}
|
||||
|
||||
$resourcePackCount = $this->getUnsignedVarInt();
|
||||
while($resourcePackCount-- > 0){
|
||||
$packId = $this->getString();
|
||||
$version = $this->getString();
|
||||
$this->resourcePackStack[] = new ResourcePackInfoEntry($packId, $version);
|
||||
}*/
|
||||
$this->getString();
|
||||
$this->getString();
|
||||
$this->getString();
|
||||
}
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
|
@ -40,24 +40,26 @@ class ResourcePacksInfoPacket extends DataPacket{
|
||||
public $resourcePackEntries = [];
|
||||
|
||||
protected function decodePayload(){
|
||||
/*$this->mustAccept = $this->getBool();
|
||||
$this->mustAccept = $this->getBool();
|
||||
$behaviorPackCount = $this->getLShort();
|
||||
while($behaviorPackCount-- > 0){
|
||||
$id = $this->getString();
|
||||
$version = $this->getString();
|
||||
$size = $this->getLLong();
|
||||
$this->behaviorPackEntries[] = new ResourcePackInfoEntry($id, $version, $size);
|
||||
$this->getString();
|
||||
$this->getString();
|
||||
$this->getLLong();
|
||||
$this->getString();
|
||||
$this->getString();
|
||||
$this->getString();
|
||||
}
|
||||
|
||||
$resourcePackCount = $this->getLShort();
|
||||
while($resourcePackCount-- > 0){
|
||||
$id = $this->getString();
|
||||
$version = $this->getString();
|
||||
$size = $this->getLLong();
|
||||
$this->resourcePackEntries[] = new ResourcePackInfoEntry($id, $version, $size);
|
||||
$this->getString();
|
||||
}*/
|
||||
$this->getString();
|
||||
$this->getLLong();
|
||||
$this->getString();
|
||||
$this->getString();
|
||||
$this->getString();
|
||||
}
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user