Skip to content

Commit 354a098

Browse files
committed
Add back x64 stub XUID (temp savedata fix)
Fixes savedata loading for existing saves, needs permanent solution
1 parent b42a4a4 commit 354a098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Minecraft.Client/Extrax64Stubs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ DWORD IQNetPlayer::GetCurrentRtt() { return 0; }
200200
bool IQNetPlayer::IsHost() { return m_isHostPlayer; }
201201
bool IQNetPlayer::IsGuest() { return false; }
202202
bool IQNetPlayer::IsLocal() { return true; }
203-
PlayerUID IQNetPlayer::GetXuid() { return INVALID_XUID; }
203+
PlayerUID IQNetPlayer::GetXuid() { return (PlayerUID)(0xe000d45248242f2e + m_smallId); } // todo: restore to INVALID_XUID once saves support this
204204
extern wstring g_playerName;
205205
LPCWSTR IQNetPlayer::GetGamertag() { return g_playerName.empty() ? L"Windows" : g_playerName.c_str(); }
206206
int IQNetPlayer::GetSessionIndex() { return 0; }

0 commit comments

Comments
 (0)