mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-06-20 17:25:35 +00:00
fix: add splitscreen, fix dlcs not loading, major RCE vuln fix on packet net, fix chunk loading on non-server clients, persistent saves
note: I changed how XUID works, player data might be wiped on old saves, save items on a chest or similar before trying to load old saves on new version
This commit is contained in:
@@ -479,9 +479,12 @@ shared_ptr<ServerPlayer> PlayerList::getPlayerForLogin(PendingConnection *pendin
|
||||
INetworkPlayer *np = pendingConnection->connection->getSocket()->getPlayer();
|
||||
if (np != NULL)
|
||||
{
|
||||
PlayerUID realXuid = np->GetUID();
|
||||
player->setXuid(realXuid);
|
||||
player->setOnlineXuid(realXuid);
|
||||
|
||||
PlayerUID persistXuid = Win64_UsernameToXuid(userName.c_str());
|
||||
player->setXuid(persistXuid);
|
||||
// network player identification, not used for saves
|
||||
PlayerUID networkXuid = np->GetUID();
|
||||
player->setOnlineXuid(networkXuid);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user