mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
PacketBatch::getPackets() may throw PacketDecodeException
This commit is contained in:
@ -40,6 +40,7 @@ class PacketBatch{
|
||||
/**
|
||||
* @return \Generator|Packet[]
|
||||
* @phpstan-return \Generator<int, Packet, void, void>
|
||||
* @throws PacketDecodeException
|
||||
*/
|
||||
public function getPackets(PacketPool $packetPool, int $max) : \Generator{
|
||||
$serializer = new PacketSerializer($this->buffer);
|
||||
|
Reference in New Issue
Block a user