mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
Level: don't send empty block update batches
This commit is contained in:
@ -792,7 +792,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
foreach($this->getChunkPlayers($chunkX, $chunkZ) as $p){
|
foreach($this->getChunkPlayers($chunkX, $chunkZ) as $p){
|
||||||
$p->onChunkChanged($chunk);
|
$p->onChunkChanged($chunk);
|
||||||
}
|
}
|
||||||
}else{
|
}elseif(!empty($blocks)){
|
||||||
$this->sendBlocks($this->getChunkPlayers($chunkX, $chunkZ), $blocks, UpdateBlockPacket::FLAG_ALL);
|
$this->sendBlocks($this->getChunkPlayers($chunkX, $chunkZ), $blocks, UpdateBlockPacket::FLAG_ALL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user