Fixed crash when using Level scheduled block update ReversePriorityQueue

This commit is contained in:
Shoghi Cervantes 2014-07-28 19:18:28 +02:00
parent d0936329aa
commit 81faddafb0

View File

@ -210,6 +210,7 @@ class Level implements ChunkManager, Metadatable{
$this->folderName = $name;
$this->updateQueue = new ReversePriorityQueue();
$this->updateQueue->setExtractFlags(\SplPriorityQueue::EXTR_BOTH);
$this->startTime = $this->time = (int) $this->provider->getTime();
$this->nextSave = $this->startCheck = microtime(true);
$this->nextSave = microtime(true) + 90;