mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Partial backport of 2bffd5cc1c
to 3.6
This commit is contained in:
@ -2622,8 +2622,10 @@ class Server{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->autoSave and ++$this->autoSaveTicker >= $this->autoSaveTicks){
|
if($this->autoSave and ++$this->autoSaveTicker >= $this->autoSaveTicks){
|
||||||
$this->autoSaveTicker = 0;
|
$this->getLogger()->debug("[Auto Save] Saving worlds...");
|
||||||
|
$start = microtime(true);
|
||||||
$this->doAutoSave();
|
$this->doAutoSave();
|
||||||
|
$this->getLogger()->debug("[Auto Save] Save completed in " . round(microtime(true) - $start, 3) . "s");
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->sendUsageTicker > 0 and --$this->sendUsageTicker === 0){
|
if($this->sendUsageTicker > 0 and --$this->sendUsageTicker === 0){
|
||||||
|
Reference in New Issue
Block a user