Level: don't send empty block update batches

This commit is contained in:
Dylan K. Taylor 2018-03-16 12:58:46 +00:00
parent d542bbc736
commit e3cae7364f

View File

@ -792,7 +792,7 @@ class Level implements ChunkManager, Metadatable{
foreach($this->getChunkPlayers($chunkX, $chunkZ) as $p){
$p->onChunkChanged($chunk);
}
}else{
}elseif(!empty($blocks)){
$this->sendBlocks($this->getChunkPlayers($chunkX, $chunkZ), $blocks, UpdateBlockPacket::FLAG_ALL);
}
}