Merge branch 'api3/network' into api3/network_mcpe-1.0.5

This commit is contained in:
Dylan K. Taylor
2017-03-19 21:54:14 +00:00
5 changed files with 21 additions and 25 deletions

View File

@ -135,10 +135,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
if($pk !== null){
$pk->decode();
assert($pk->feof(), "Still " . strlen(substr($pk->buffer, $pk->offset)) . " bytes unread!");
if(!$pk->handle($this->players[$identifier])){
$logger = $this->server->getLogger();
$logger->debug("Unhandled " . get_class($pk) . " received from " . $this->players[$identifier]->getName());
}
$this->players[$identifier]->handleDataPacket($pk);
}
}
}catch(\Throwable $e){