mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Chunk: remove useless instanceof check from collectGarbage()
This commit is contained in:
@@ -703,11 +703,9 @@ class Chunk{
|
||||
*/
|
||||
public function collectGarbage() : void{
|
||||
foreach($this->subChunks as $y => $subChunk){
|
||||
if($subChunk instanceof SubChunk){
|
||||
$subChunk->collectGarbage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hashes the given chunk block coordinates into a single integer.
|
||||
|
Reference in New Issue
Block a user