Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Fixes #3991, closes #4011
Browse files Browse the repository at this point in the history
  • Loading branch information
PEMapModder committed Mar 15, 2016
1 parent 6ba0abf commit f82c59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pocketmine/level/Level.php
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ private function tickChunks(){

$chunksPerLoader = min(200, max(1, (int) ((($this->chunksPerTick - count($this->loaders)) / count($this->loaders)) + 0.5)));
$randRange = 3 + $chunksPerLoader / 30;
$randRange = $randRange > $this->chunkTickRadius ? $this->chunkTickRadius : $randRange;
$randRange = (int) ($randRange > $this->chunkTickRadius ? $this->chunkTickRadius : $randRange);

foreach($this->loaders as $loader){
$chunkX = $loader->getX() >> 4;
Expand Down

0 comments on commit f82c59b

Please sign in to comment.