Fixed state corruption for auto saving

This commit is contained in:
Shoghi Cervantes 2015-06-06 15:53:28 +02:00
parent 2a805dc0ed
commit 5682026eae
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -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);
}