mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Level: don't send empty block update batches
This commit is contained in:
parent
d542bbc736
commit
e3cae7364f
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user