diff --git a/src/player/Player.php b/src/player/Player.php index 4d46cfac6..1839adc09 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -685,8 +685,10 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ $count = 0; $world = $this->getWorld(); + + $limit = $this->chunksPerTick - count($this->activeChunkGenerationRequests); foreach($this->loadQueue as $index => $distance){ - if($count >= $this->chunksPerTick - count($this->activeChunkGenerationRequests)){ + if($count >= $limit){ break; }