mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 10:49:10 +00:00
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:
parent
91bda131be
commit
0b9b1738b3
@ -855,7 +855,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(count($this->blockCache) > 2048){
|
if(count($this->blockCache) > 2048){
|
||||||
$this->chunkCache = [];
|
$this->blockCache = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user