mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function invalidate() : void{
|
||||||
|
$this->currentChunk = null;
|
||||||
|
$this->currentSubChunk = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user