diff --git a/src/world/World.php b/src/world/World.php index f4304b08e8..1675aef96d 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -1164,6 +1164,17 @@ class World implements ChunkManager{ } } + /** + * Notify the blocks at and around the position that the block at the position may have changed. + * This will cause onNeighbourBlockUpdate() to be called for these blocks. + */ + public function notifyNeighbourBlockUpdate(Vector3 $pos) : void{ + $this->tryAddToNeighbourUpdateQueue($pos); + foreach($pos->sides() as $side){ + $this->tryAddToNeighbourUpdateQueue($side); + } + } + /** * @return Block[] */