Block cache not cleared with a call to clearcache

While trying to figure out Github and looking for a different bug I found this small bug in the code. The ClearCache function on Level.php did not correctly clear the blockcache.
This commit is contained in:
Sjoerd 2015-08-27 10:44:44 +02:00
parent 91bda131be
commit 0b9b1738b3

View File

@ -855,7 +855,7 @@ class Level implements ChunkManager, Metadatable{
} }
if(count($this->blockCache) > 2048){ if(count($this->blockCache) > 2048){
$this->chunkCache = []; $this->blockCache = [];
} }
} }