fixed a bug that caused to send extremely long packets

This commit is contained in:
GameHerobrine 2024-01-06 03:32:33 +03:00
parent b4e87b017d
commit 78d2b95b9a

View file

@ -1190,7 +1190,7 @@ class Player{
$packet->messageIndex = $this->counter[3]++; $packet->messageIndex = $this->counter[3]++;
$packet->reliability = 2; $packet->reliability = 2;
@$this->blockUpdateQueue->data[] = $packet; @$this->blockUpdateQueue->data[] = $packet;
$this->blockUpdateQueueLength = 6 + $len; $this->blockUpdateQueueLength += 6 + $len;
} }
public function addEntityMovementUpdateToQueue(Entity $e){ public function addEntityMovementUpdateToQueue(Entity $e){