block update queue and entity data queue will be sent every tick if it contains any packets

This commit is contained in:
GameHerobrine 2025-06-26 11:11:35 +03:00
parent 756c597e47
commit 30eae88ebb

View file

@ -1425,7 +1425,6 @@ class Player{
}
if($this->sendingInventoryRequired){
//console("inv resent");
if(($this->gamemode & 0x01) !== CREATIVE){
$hotbar = [];
foreach($this->hotbar as $slot){
@ -1481,6 +1480,14 @@ class Player{
if($this->bufferLen > 0){
$this->sendBuffer();
}
if($this->blockUpdateQueueLength > 0){
$this->sendBlockUpdateQueue();
}
if($this->entityDataQueueLength > 0){
$this->sendEntityMovementUpdateQueue();
}
$limit = $time - 5; //max lag
foreach($this->recoveryQueue as $count => $data){