From 8b3fad8a7be9306635f13e262ab60ad03519c1a9 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 27 Aug 2017 19:44:40 +0100 Subject: [PATCH] Removed redundant condition --- src/pocketmine/level/Level.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 77a52f38f..57a51aa51 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -1623,10 +1623,8 @@ class Level implements ChunkManager, Metadatable{ } $above = $this->getBlock(new Vector3($target->x, $target->y + 1, $target->z)); - if($above !== null){ - if($above->getId() === Item::FIRE){ - $this->setBlock($above, BlockFactory::get(Block::AIR), true); - } + if($above->getId() === Item::FIRE){ + $this->setBlock($above, BlockFactory::get(Block::AIR), true); } if($createParticles){