mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Exploded Player->handleDataPacket() into 70+ methods
This commit is contained in:
@ -252,7 +252,10 @@ class Network{
|
||||
|
||||
$pk->decode();
|
||||
assert($pk->feof(), "Still " . strlen(substr($pk->buffer, $pk->offset)) . " bytes unread in " . get_class($pk));
|
||||
$p->handleDataPacket($pk);
|
||||
if(!$pk->handle($p)){
|
||||
$logger = $this->server->getLogger();
|
||||
$logger->debug("Unhandled " . get_class($pk) . " received from " . $p->getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch(\Throwable $e){
|
||||
|
Reference in New Issue
Block a user