From e3cae7364f1b98396f81b6bd29200929285453c8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 16 Mar 2018 12:58:46 +0000 Subject: [PATCH] Level: don't send empty block update batches --- src/pocketmine/level/Level.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 8d7c21a0d..eeeee525b 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -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); } }