From 15299735e9c94db37771dff64907d6f36a29b736 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 5 Sep 2020 22:22:19 +0100 Subject: [PATCH] Do not create chunks during light propagation/removal this used to be necessary to trigger subchunk creation so that light arrays would be available for use. With 02ff8d671b93ec5911576643e9b03f2049f31c81, this is no longer necessary. --- src/world/light/LightUpdate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/world/light/LightUpdate.php b/src/world/light/LightUpdate.php index 5bba96bf3..914f62a90 100644 --- a/src/world/light/LightUpdate.php +++ b/src/world/light/LightUpdate.php @@ -145,7 +145,7 @@ abstract class LightUpdate{ ]; foreach($points as list($cx, $cy, $cz)){ - if($this->subChunkHandler->moveTo($cx, $cy, $cz, true)){ + if($this->subChunkHandler->moveTo($cx, $cy, $cz, false)){ $this->computeRemoveLight($cx, $cy, $cz, $oldAdjacentLight); }elseif($this->getEffectiveLight($cx, $cy, $cz) > 0 and !isset($this->spreadVisited[$index = World::blockHash($cx, $cy, $cz)])){ $this->spreadVisited[$index] = true; @@ -174,7 +174,7 @@ abstract class LightUpdate{ ]; foreach($points as list($cx, $cy, $cz)){ - if($this->subChunkHandler->moveTo($cx, $cy, $cz, true)){ + if($this->subChunkHandler->moveTo($cx, $cy, $cz, false)){ $this->computeSpreadLight($cx, $cy, $cz, $newAdjacentLight); } }