From 8cca8e1256bcf7ebe418ad258981775e46ad2a8b Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 9 Jul 2017 12:19:38 +0100 Subject: [PATCH] Fixed a bug in light removal --- src/pocketmine/level/light/LightUpdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/level/light/LightUpdate.php b/src/pocketmine/level/light/LightUpdate.php index 37fbfd168..8d1497ab3 100644 --- a/src/pocketmine/level/light/LightUpdate.php +++ b/src/pocketmine/level/light/LightUpdate.php @@ -137,7 +137,7 @@ abstract class LightUpdate{ if($current !== 0 and $current < $oldAdjacentLevel){ $this->setLight($x, $y, $z, 0); - if(!isset($visited[$index = Level::blockHash($x, $y, $z)])){ + if(!isset($this->removalVisited[$index = Level::blockHash($x, $y, $z)])){ $this->removalVisited[$index] = true; if($current > 1){ $this->removalQueue->enqueue([$x, $y, $z, $current]);