mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Merge branch 'api3/network' into api3/network_mcpe-1.0.5
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user