mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-19 15:35:52 +00:00
Reduce packets-per-batch limit to 100
this should be well in excess of requirements with the ItemStackRequest system in use.
This commit is contained in:
parent
8408da8534
commit
23ea721164
@ -376,7 +376,7 @@ class NetworkSession{
|
||||
$stream = new BinaryStream($decompressed);
|
||||
$count = 0;
|
||||
foreach(PacketBatch::decodeRaw($stream) as $buffer){
|
||||
if(++$count > 1300){
|
||||
if(++$count > 100){
|
||||
throw new PacketHandlingException("Too many packets in batch");
|
||||
}
|
||||
$packet = $this->packetPool->getPacket($buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user