World: Use existing function to notify nearby blocks of an update (#5494)

This commit is contained in:
IvanCraft623
2023-01-05 11:55:35 -05:00
committed by GitHub
parent 172ce659b8
commit e647e8c933

View File

@ -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();