mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 21:59:52 +00:00
NetworkSession: add some more debug
This commit is contained in:
parent
3ac0c98199
commit
dd45753fa9
@ -560,13 +560,16 @@ class NetworkSession{
|
||||
$this->createPlayer();
|
||||
|
||||
$this->setHandler(new PreSpawnSessionHandler($this->server, $this->player, $this));
|
||||
$this->logger->debug("Waiting for spawn chunks");
|
||||
}
|
||||
|
||||
public function onTerrainReady() : void{
|
||||
$this->logger->debug("Sending spawn notification, waiting for spawn response");
|
||||
$this->sendDataPacket(PlayStatusPacket::create(PlayStatusPacket::PLAYER_SPAWN));
|
||||
}
|
||||
|
||||
public function onSpawn() : void{
|
||||
$this->logger->debug("Received spawn response, entering in-game phase");
|
||||
$this->player->doFirstSpawn();
|
||||
$this->setHandler(new InGameSessionHandler($this->player, $this));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user