mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed incorrect player count at login
This commit is contained in:
@ -469,14 +469,16 @@ class PocketMinecraftServer{
|
|||||||
$port = $data[2];
|
$port = $data[2];
|
||||||
$MTU = $data[3];
|
$MTU = $data[3];
|
||||||
$clientID = $data[4];
|
$clientID = $data[4];
|
||||||
$this->clients[$CID] = new Player($clientID, $packet["ip"], $packet["port"], $MTU); //New Session!
|
if(count($this->server->clients) < $this->server->maxClients){
|
||||||
$this->send(0x08, array(
|
$this->clients[$CID] = new Player($clientID, $packet["ip"], $packet["port"], $MTU); //New Session!
|
||||||
RAKNET_MAGIC,
|
$this->send(0x08, array(
|
||||||
$this->serverID,
|
RAKNET_MAGIC,
|
||||||
$this->port,
|
$this->serverID,
|
||||||
$data[3],
|
$this->port,
|
||||||
0,
|
$data[3],
|
||||||
), false, $packet["ip"], $packet["port"]);
|
0,
|
||||||
|
), false, $packet["ip"], $packet["port"]);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user