mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Moved network ids to constants, improved some entity methods, more performance
This commit is contained in:
@ -220,7 +220,7 @@ class Network{
|
||||
try{
|
||||
while($offset < $len){
|
||||
if(($pk = $this->getPacket(ord($str{$offset++}))) !== null){
|
||||
if($pk->pid() === Info::BATCH_PACKET){
|
||||
if($pk::NETWORK_ID === Info::BATCH_PACKET){
|
||||
throw new \InvalidStateException("Invalid BatchPacket inside BatchPacket");
|
||||
}
|
||||
$pk->setBuffer($str, $offset);
|
||||
|
Reference in New Issue
Block a user