From e9b84ecc8be4ebe737fafb92a1aee4b77656d8d7 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 16 Sep 2018 17:46:50 +0100 Subject: [PATCH] Fixed incorrect break check for torch --- src/pocketmine/block/Torch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/block/Torch.php b/src/pocketmine/block/Torch.php index 3c310a68a..6cc7a1360 100644 --- a/src/pocketmine/block/Torch.php +++ b/src/pocketmine/block/Torch.php @@ -55,7 +55,7 @@ class Torch extends Flowable{ 5 => Vector3::SIDE_DOWN ]; - if($this->getSide($faces[$side])->isTransparent() and !($side === Vector3::SIDE_DOWN and ($below->getId() === self::FENCE or $below->getId() === self::COBBLESTONE_WALL))){ + if($this->getSide($faces[$side])->isTransparent() and !($faces[$side] === Vector3::SIDE_DOWN and ($below->getId() === self::FENCE or $below->getId() === self::COBBLESTONE_WALL))){ $this->getLevel()->useBreakOn($this); } }