diff --git a/src/world/World.php b/src/world/World.php index 6d3aa6712..be5e7c426 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -2258,6 +2258,11 @@ class World implements ChunkManager{ $previousSpawn = $this->getSpawnLocation(); $this->provider->getWorldData()->setSpawn($pos); (new SpawnChangeEvent($this, $previousSpawn))->call(); + + $location = Position::fromObject($pos, $this); + foreach($this->players as $player){ + $player->getNetworkSession()->syncWorldSpawnPoint($location); + } } /**