mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Include TitleID in PlayerInfo extraData (#6054)
This commit is contained in:
parent
04b815a87a
commit
ee6d551729
@ -83,6 +83,9 @@ class LoginPacketHandler extends PacketHandler{
|
||||
throw new PacketHandlingException("Invalid login UUID");
|
||||
}
|
||||
$uuid = Uuid::fromString($extraData->identity);
|
||||
$arrClientData = (array) $clientData;
|
||||
$arrClientData["TitleID"] = $extraData->titleId;
|
||||
|
||||
if($extraData->XUID !== ""){
|
||||
$playerInfo = new XboxLivePlayerInfo(
|
||||
$extraData->XUID,
|
||||
@ -90,7 +93,7 @@ class LoginPacketHandler extends PacketHandler{
|
||||
$uuid,
|
||||
$skin,
|
||||
$clientData->LanguageCode,
|
||||
(array) $clientData
|
||||
$arrClientData
|
||||
);
|
||||
}else{
|
||||
$playerInfo = new PlayerInfo(
|
||||
@ -98,7 +101,7 @@ class LoginPacketHandler extends PacketHandler{
|
||||
$uuid,
|
||||
$skin,
|
||||
$clientData->LanguageCode,
|
||||
(array) $clientData
|
||||
$arrClientData
|
||||
);
|
||||
}
|
||||
($this->playerInfoConsumer)($playerInfo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user