mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
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:
parent
f757ba1851
commit
22b91aaa24
@ -75,4 +75,8 @@ class SubChunkIteratorManager{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function invalidate() : void{
|
||||
$this->currentChunk = null;
|
||||
$this->currentSubChunk = null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user