mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Chunk: remove useless instanceof check from collectGarbage()
This commit is contained in:
parent
f71eecfe56
commit
23e2e7c320
@ -703,9 +703,7 @@ class Chunk{
|
||||
*/
|
||||
public function collectGarbage() : void{
|
||||
foreach($this->subChunks as $y => $subChunk){
|
||||
if($subChunk instanceof SubChunk){
|
||||
$subChunk->collectGarbage();
|
||||
}
|
||||
$subChunk->collectGarbage();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user