Support for 0.14.0.1

This commit is contained in:
Intyre
2016-01-26 22:01:35 +01:00
parent d5f3c19054
commit bc3dca4736
4 changed files with 17 additions and 13 deletions

View File

@ -218,12 +218,12 @@ class Network{
$buf = substr($str, $offset, $pkLen);
$offset += $pkLen;
if(($pk = $this->getPacket(ord($buf{0}))) !== null){
if(($pk = $this->getPacket(ord($buf{1}))) !== null){ // #blameshoghi
if($pk::NETWORK_ID === Info::BATCH_PACKET){
throw new \InvalidStateException("Invalid BatchPacket inside BatchPacket");
}
$pk->setBuffer($buf, 1);
$pk->setBuffer($buf, 2); // #blameshoghi
$pk->decode();
$p->handleDataPacket($pk);