Chunk: remove useless instanceof check from collectGarbage()

This commit is contained in:
Dylan K. Taylor 2019-10-23 18:29:01 +01:00
parent f71eecfe56
commit 23e2e7c320

View File

@ -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.