mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Let the parent caller catch this so we get encapsulated packet hexdumps
This commit is contained in:
parent
9e92a350e3
commit
adb7df212c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user