mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +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){
|
if($this->sendingInventoryRequired){
|
||||||
//console("inv resent");
|
|
||||||
if(($this->gamemode & 0x01) !== CREATIVE){
|
if(($this->gamemode & 0x01) !== CREATIVE){
|
||||||
$hotbar = [];
|
$hotbar = [];
|
||||||
foreach($this->hotbar as $slot){
|
foreach($this->hotbar as $slot){
|
||||||
|
|
@ -1481,6 +1480,14 @@ class Player{
|
||||||
if($this->bufferLen > 0){
|
if($this->bufferLen > 0){
|
||||||
$this->sendBuffer();
|
$this->sendBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->blockUpdateQueueLength > 0){
|
||||||
|
$this->sendBlockUpdateQueue();
|
||||||
|
}
|
||||||
|
|
||||||
|
if($this->entityDataQueueLength > 0){
|
||||||
|
$this->sendEntityMovementUpdateQueue();
|
||||||
|
}
|
||||||
|
|
||||||
$limit = $time - 5; //max lag
|
$limit = $time - 5; //max lag
|
||||||
foreach($this->recoveryQueue as $count => $data){
|
foreach($this->recoveryQueue as $count => $data){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue