Let the parent caller catch this so we get encapsulated packet hexdumps

This commit is contained in:
Dylan K. Taylor 2017-03-08 18:31:24 +00:00
parent 9e92a350e3
commit adb7df212c

View File

@ -232,7 +232,6 @@ class Network{
}
public function processBatch(BatchPacket $packet, Player $p){
try{
if(strlen($packet->payload) === 0){
//prevent zlib_decode errors for incorrectly-decoded packets
throw new \InvalidArgumentException("BatchPacket payload is empty or packet decode error");
@ -265,13 +264,6 @@ class Network{
}
}
}
}catch(\Throwable $e){
if(\pocketmine\DEBUG > 1){
$logger = $this->server->getLogger();
$logger->debug("BatchPacket " . " 0x" . bin2hex($packet->payload));
$logger->logException($e);
}
}
}
/**