Stop using insecure UUIDs from non-XBL players

closes #4076

I opted for the minimal approach of replacing only UUIDs for non-XBL players, since most servers are using XBL anyway (as they should).
This commit is contained in:
Dylan K. Taylor
2023-05-27 18:00:54 +01:00
parent 473c062b40
commit 9baf59702b
3 changed files with 21 additions and 3 deletions

View File

@ -95,7 +95,7 @@ class LoginPacketHandler extends PacketHandler{
}else{
$playerInfo = new PlayerInfo(
$extraData->displayName,
$uuid,
null, //we can't trust UUIDs of non-XBL players - replace this with a server-generated UUID
$skin,
$clientData->LanguageCode,
(array) $clientData