mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
Fixed state corruption for auto saving
This commit is contained in:
parent
2a805dc0ed
commit
5682026eae
@ -214,7 +214,7 @@ class Server{
|
|||||||
private $baseTickRate = 1;
|
private $baseTickRate = 1;
|
||||||
|
|
||||||
private $autoSaveTicker = 0;
|
private $autoSaveTicker = 0;
|
||||||
private $autoSaveTicks = 0;
|
private $autoSaveTicks = 6000;
|
||||||
|
|
||||||
/** @var BaseLang */
|
/** @var BaseLang */
|
||||||
private $baseLang;
|
private $baseLang;
|
||||||
@ -1763,7 +1763,7 @@ class Server{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->getAutoSave() and $this->getProperty("ticks-per.autosave", 6000) > 0){
|
if($this->getProperty("ticks-per.autosave", 6000) > 0){
|
||||||
$this->autoSaveTicks = (int) $this->getProperty("ticks-per.autosave", 6000);
|
$this->autoSaveTicks = (int) $this->getProperty("ticks-per.autosave", 6000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user