diff --git a/src/player/Player.php b/src/player/Player.php index 9d9f8b607..1a00dc2c2 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -747,7 +747,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ } protected function spawnEntitiesOnChunk(int $chunkX, int $chunkZ) : void{ - foreach($this->getWorld()->getOrLoadChunk($chunkX, $chunkZ)->getEntities() as $entity){ + foreach($this->getWorld()->getChunk($chunkX, $chunkZ)->getEntities() as $entity){ if($entity !== $this and !$entity->isFlaggedForDespawn()){ $entity->spawnTo($this); }