From 23e2e7c320e60d09fa7681b92af49937faec9888 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 23 Oct 2019 18:29:01 +0100 Subject: [PATCH] Chunk: remove useless instanceof check from collectGarbage() --- src/world/format/Chunk.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/world/format/Chunk.php b/src/world/format/Chunk.php index 27cbb85a6..f7fbf4be1 100644 --- a/src/world/format/Chunk.php +++ b/src/world/format/Chunk.php @@ -703,9 +703,7 @@ class Chunk{ */ public function collectGarbage() : void{ foreach($this->subChunks as $y => $subChunk){ - if($subChunk instanceof SubChunk){ - $subChunk->collectGarbage(); - } + $subChunk->collectGarbage(); } }