mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-11-24 22:00:17 +00:00
feat: possibly fix saves
This commit is contained in:
1 parent
21a5a4aef0
commit
14dd49de96
3 files changed
+16
-4
No files matched your search
@@ -1396,8 +1396,7 @@ void CGameNetworkManager::CreateSocket( INetworkPlayer *pNetworkPlayer, bool loc
|
||||
Minecraft *pMinecraft = Minecraft::GetInstance();
|
||||
|
||||
Socket *socket = NULL;
|
||||
int userIdx = pNetworkPlayer->GetUserIndex();
|
||||
shared_ptr<MultiplayerLocalPlayer> mpPlayer = (userIdx >= 0 && userIdx < XUSER_MAX_COUNT) ? pMinecraft->localplayers[userIdx] : nullptr;
|
||||
shared_ptr<MultiplayerLocalPlayer> mpPlayer = pMinecraft->localplayers[pNetworkPlayer->GetUserIndex()];
|
||||
if( localPlayer && mpPlayer != NULL && mpPlayer->connection != NULL)
|
||||
{
|
||||
// If we already have a MultiplayerLocalPlayer here then we are doing a session type change
|
||||
|
||||
Reference in new issue
Block a user