mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
PacketBatch::getPackets() may throw PacketDecodeException
This commit is contained in:
parent
8402465fd2
commit
5910905e95
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user