From b6618fb023be839cf990c97f230beb0d7c1c8fcd Mon Sep 17 00:00:00 2001 From: sylvessa <225480449+sylvessa@users.noreply.github.com> Date: Mon, 23 Mar 2026 15:56:05 -0500 Subject: [PATCH 1/2] pass invalid_xuid to other players --- Minecraft.Client/TrackedEntity.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Minecraft.Client/TrackedEntity.cpp b/Minecraft.Client/TrackedEntity.cpp index 3aa33248d2..98092c82b7 100644 --- a/Minecraft.Client/TrackedEntity.cpp +++ b/Minecraft.Client/TrackedEntity.cpp @@ -519,6 +519,17 @@ void TrackedEntity::updatePlayer(EntityTracker *tracker, shared_ptr packet = getAddEntityPacket(); + + if (e->instanceof(eTYPE_SERVERPLAYER)) + { + shared_ptr addPlayerPkt = dynamic_pointer_cast(packet); + if (addPlayerPkt != nullptr) + { + addPlayerPkt->xuid = INVALID_XUID; + addPlayerPkt->OnlineXuid = INVALID_XUID; + } + } + sp->connection->send(packet); xap = e->xd; From 7d88b9c5b73a920829d73bc7bebb1eeeaee98ba9 Mon Sep 17 00:00:00 2001 From: sylvessa <225480449+sylvessa@users.noreply.github.com> Date: Mon, 23 Mar 2026 16:13:58 -0500 Subject: [PATCH 2/2] actually more simple fix --- Minecraft.Client/TrackedEntity.cpp | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/Minecraft.Client/TrackedEntity.cpp b/Minecraft.Client/TrackedEntity.cpp index 98092c82b7..380750449b 100644 --- a/Minecraft.Client/TrackedEntity.cpp +++ b/Minecraft.Client/TrackedEntity.cpp @@ -519,17 +519,6 @@ void TrackedEntity::updatePlayer(EntityTracker *tracker, shared_ptr packet = getAddEntityPacket(); - - if (e->instanceof(eTYPE_SERVERPLAYER)) - { - shared_ptr addPlayerPkt = dynamic_pointer_cast(packet); - if (addPlayerPkt != nullptr) - { - addPlayerPkt->xuid = INVALID_XUID; - addPlayerPkt->OnlineXuid = INVALID_XUID; - } - } - sp->connection->send(packet); xap = e->xd; @@ -664,11 +653,12 @@ shared_ptr TrackedEntity::getAddEntityPacket() PlayerUID xuid = INVALID_XUID; PlayerUID OnlineXuid = INVALID_XUID; - if( player != nullptr ) - { - xuid = player->getXuid(); - OnlineXuid = player->getOnlineXuid(); - } + // do not pass xuid/onlinxuid to cleints + //if( player != nullptr ) + //{ + // xuid = player->getXuid(); + // OnlineXuid = player->getOnlineXuid(); + //} // 4J Added yHeadRotp param to fix #102563 - TU12: Content: Gameplay: When one of the Players is idle for a few minutes his head turns 180 degrees. return std::make_shared(player, xuid, OnlineXuid, xp, yp, zp, yRotp, xRotp, yHeadRotp); }