mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Player: fixed a mistake in generation rate limit
we don't want to allow sending further chunks when we haven't generated near ones, because we won't be able to see them anyway, and we might end up not needing them. This now fully matches the results of PM3.
This commit is contained in:
parent
6cd272c9e1
commit
640e88009b
@ -686,7 +686,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
$count = 0;
|
||||
$world = $this->getWorld();
|
||||
foreach($this->loadQueue as $index => $distance){
|
||||
if($count >= $this->chunksPerTick || count($this->activeChunkGenerationRequests) >= $this->chunksPerTick){
|
||||
if($count >= $this->chunksPerTick - count($this->activeChunkGenerationRequests)){
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user