NetworkSession: Sync all attributes on respawn

This commit is contained in:
Dylan K. Taylor
2022-05-21 16:22:35 +01:00
parent a45a96b3ee
commit fcb2ccab99
2 changed files with 11 additions and 0 deletions

View File

@ -723,6 +723,7 @@ class NetworkSession{
}
public function onServerRespawn() : void{
$this->syncAttributes($this->player, $this->player->getAttributeMap()->getAll());
$this->player->sendData(null);
$this->syncAdventureSettings($this->player);