mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Limited player upload peak using CLI max-chunks-per-second parameter
This commit is contained in:
parent
affd67debe
commit
ee7c767c16
2 changed files with 3 additions and 2 deletions
|
|
@ -155,7 +155,7 @@ class Player{
|
|||
|
||||
foreach($this->chunkCount as $i => $count){
|
||||
if(isset($this->recoveryQueue[$count])){
|
||||
$this->server->schedule(1, array($this, "getNextChunk"));
|
||||
$this->server->schedule(MAX_CHUNK_RATE, array($this, "getNextChunk"));
|
||||
return;
|
||||
}else{
|
||||
unset($this->chunkCount[$i]);
|
||||
|
|
@ -207,7 +207,7 @@ class Player{
|
|||
}
|
||||
}
|
||||
|
||||
$this->server->schedule(1, array($this, "getNextChunk"));
|
||||
$this->server->schedule(MAX_CHUNK_RATE, array($this, "getNextChunk"));
|
||||
}
|
||||
|
||||
public function save(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue