Exploded Player->handleDataPacket() into 70+ methods

This commit is contained in:
Dylan K. Taylor
2017-02-26 15:51:11 +00:00
parent 8bf3b6bbea
commit 477cb77002
77 changed files with 2105 additions and 1130 deletions

View File

@ -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){