mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
block update queue and entity data queue will be sent every tick if it contains any packets
This commit is contained in:
parent
756c597e47
commit
30eae88ebb
1 changed files with 8 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue