mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +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 $autoSaveTicker = 0;
|
||||
private $autoSaveTicks = 0;
|
||||
private $autoSaveTicks = 6000;
|
||||
|
||||
/** @var BaseLang */
|
||||
private $baseLang;
|
||||
@ -1763,7 +1763,7 @@ class Server{
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user