From 8779259734cbdc6ef33b1f8b1c680168da942e3e Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 29 May 2017 15:57:05 +0100 Subject: [PATCH] Stop spawning entities to players twice This will be done when the chunk is sent to the player anyway. --- src/pocketmine/level/format/Chunk.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pocketmine/level/format/Chunk.php b/src/pocketmine/level/format/Chunk.php index 7ff262d56..0df4caf6b 100644 --- a/src/pocketmine/level/format/Chunk.php +++ b/src/pocketmine/level/format/Chunk.php @@ -711,9 +711,7 @@ class Chunk{ try{ $entity = Entity::createEntity($nbt["id"], $level, $nbt); - if($entity instanceof Entity){ - $entity->spawnToAll(); - }else{ + if(!($entity instanceof Entity)){ $changed = true; continue; }