SubChunkIteratorManager: Added method invalidate() to allow destroying stale chunk refs conveniently

this could be necessary for reusable long-life iterators when chunks get replaced.
This commit is contained in:
Dylan K. Taylor 2018-05-18 09:52:05 +01:00
parent f757ba1851
commit 22b91aaa24

View File

@ -75,4 +75,8 @@ class SubChunkIteratorManager{
return true;
}
public function invalidate() : void{
$this->currentChunk = null;
$this->currentSubChunk = null;
}
}