mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
Remove chunks from advanced cache after setting
This commit is contained in:
parent
cbe0fe5e46
commit
0680b98380
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user