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:
Dylan K. Taylor 2023-03-20 22:15:02 +00:00
parent 8408da8534
commit 23ea721164
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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);