Remove chunks from advanced cache after setting

This commit is contained in:
Shoghi Cervantes 2014-10-29 01:07:30 +01:00
parent cbe0fe5e46
commit 0680b98380

View File

@ -1606,6 +1606,9 @@ class Level implements ChunkManager, Metadatable{
$this->provider->setChunk($x, $z, $chunk); $this->provider->setChunk($x, $z, $chunk);
$this->chunks[$index] = $chunk; $this->chunks[$index] = $chunk;
} }
if(ADVANCED_CACHE == true){
Cache::remove("world:" . $this->getID() . ":$x:$z");
}
$chunk->setChanged(); $chunk->setChanged();
} }