mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 06:09:57 +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->createPlayer();
|
||||||
|
|
||||||
$this->setHandler(new PreSpawnSessionHandler($this->server, $this->player, $this));
|
$this->setHandler(new PreSpawnSessionHandler($this->server, $this->player, $this));
|
||||||
|
$this->logger->debug("Waiting for spawn chunks");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onTerrainReady() : void{
|
public function onTerrainReady() : void{
|
||||||
|
$this->logger->debug("Sending spawn notification, waiting for spawn response");
|
||||||
$this->sendDataPacket(PlayStatusPacket::create(PlayStatusPacket::PLAYER_SPAWN));
|
$this->sendDataPacket(PlayStatusPacket::create(PlayStatusPacket::PLAYER_SPAWN));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onSpawn() : void{
|
public function onSpawn() : void{
|
||||||
|
$this->logger->debug("Received spawn response, entering in-game phase");
|
||||||
$this->player->doFirstSpawn();
|
$this->player->doFirstSpawn();
|
||||||
$this->setHandler(new InGameSessionHandler($this->player, $this));
|
$this->setHandler(new InGameSessionHandler($this->player, $this));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user