mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Some cleanup to player net session handling for connect/disconnect
This commit is contained in:
@ -143,7 +143,7 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{
|
||||
}
|
||||
|
||||
public function openSession(int $sessionId, string $address, int $port, int $clientID) : void{
|
||||
$session = new NetworkSession($this->server, $this, $address, $port);
|
||||
$session = new NetworkSession($this->server, $this->network->getSessionManager(), $this, $address, $port);
|
||||
$this->sessions[$sessionId] = $session;
|
||||
$this->identifiers[spl_object_id($session)] = $sessionId;
|
||||
}
|
||||
|
Reference in New Issue
Block a user