From e647e8c93310ebc8aabc1ababc02ca9c6984f2df Mon Sep 17 00:00:00 2001 From: IvanCraft623 <57236932+IvanCraft623@users.noreply.github.com> Date: Thu, 5 Jan 2023 11:55:35 -0500 Subject: [PATCH] World: Use existing function to notify nearby blocks of an update (#5494) --- src/world/World.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/world/World.php b/src/world/World.php index b6651fc6f..fec9efaa5 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -1788,10 +1788,7 @@ class World implements ChunkManager{ if($update){ $this->updateAllLight($x, $y, $z); - $this->tryAddToNeighbourUpdateQueue($pos); - foreach($pos->sides() as $side){ - $this->tryAddToNeighbourUpdateQueue($side); - } + $this->notifyNeighbourBlockUpdate($pos); } $this->timings->setBlock->stopTiming();