mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Support for 0.14.0.1
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user