mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Player: move some respawn net sync logic to NetworkSession
This commit is contained in:
@ -586,6 +586,11 @@ class NetworkSession{
|
||||
}
|
||||
|
||||
public function onRespawn() : void{
|
||||
$this->player->sendData($this->player);
|
||||
$this->player->sendData($this->player->getViewers());
|
||||
|
||||
$this->syncAdventureSettings($this->player);
|
||||
$this->syncAllInventoryContents();
|
||||
$this->setHandler(new InGameSessionHandler($this->player, $this));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user