This commit is contained in:
Shoghi Cervantes 2015-04-14 21:12:57 +02:00
parent 91388c6b86
commit e09ebb0623
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -1970,11 +1970,11 @@ class Level implements ChunkManager, Metadatable{
continue; continue;
} }
Level::getXZ($index, $x, $z); Level::getXZ($index, $x, $z);
$this->chunkSendTasks[$index] = true;
if(isset($this->chunkCache[$index])){ if(isset($this->chunkCache[$index])){
$this->chunkRequestCallback($x, $z, $this->chunkCache[$index]); $this->chunkRequestCallback($x, $z, $this->chunkCache[$index]);
continue; continue;
} }
$this->chunkSendTasks[$index] = true;
$this->timings->syncChunkSendPrepareTimer->startTiming(); $this->timings->syncChunkSendPrepareTimer->startTiming();
$task = $this->provider->requestChunkTask($x, $z); $task = $this->provider->requestChunkTask($x, $z);
if($task instanceof AsyncTask){ if($task instanceof AsyncTask){