From d990c7c6b32416ea5fde38a6662b0e9111f58921 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 6 Jan 2026 09:41:18 +0300 Subject: [PATCH] idk maybe it will fix desyncs --- src/Player.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Player.php b/src/Player.php index ad5db96b..6e15baf9 100755 --- a/src/Player.php +++ b/src/Player.php @@ -1757,7 +1757,7 @@ class Player{ $len = 1 + strlen($pk->buffer); $MTU = $this->MTU - 24; if($len > $MTU) return $this->blockQueueDataPacket_big($pk); - if(($this->blockUpdateQueueLength + $len) >= $MTU){ + if(($this->blockUpdateQueueLength + $len+10) >= $MTU){ $this->sendBlockUpdateQueue(); } @@ -1801,7 +1801,7 @@ class Player{ $MTU = $this->MTU - 24; if($len > $MTU) return $this->entityQueueDataPacket_big($pk); - if(($this->entityDataQueueLength + $len) >= $MTU){ + if(($this->entityDataQueueLength + $len+10) >= $MTU){ $this->sendEntityDataQueue(); } @@ -2051,7 +2051,7 @@ class Player{ $MTU = $this->MTU - 24; if($len > $MTU) return $this->sendChatMessagePacket_big($packet); - if(($this->chatMessagesQueueLength + $len) >= $MTU) $this->sendChatBuffer(); + if(($this->chatMessagesQueueLength + $len+10) >= $MTU) $this->sendChatBuffer(); $packet->reliability = RakNetInfo::RELIABILITY_RELIABLE_ORDERED; $packet->messageIndex = $this->counter[3]++;