diff options
| author | Sylvessa <225480449+sylvessa@users.noreply.github.com> | 2026-03-26 09:19:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 10:19:20 -0400 |
| commit | c96a8ee524f6fdc7bd7a7c33024f3483c40b7876 (patch) | |
| tree | 99876d7461000c29fd75365c3a7091c04ad52ce3 /Minecraft.Client | |
| parent | 1a50770647c582c5ce194e5741e3014bb1c1e8b2 (diff) | |
fix splitscreen xuids (#1413)
Diffstat (limited to 'Minecraft.Client')
| -rw-r--r-- | Minecraft.Client/TrackedEntity.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Minecraft.Client/TrackedEntity.cpp b/Minecraft.Client/TrackedEntity.cpp index 38075044..3ecd6678 100644 --- a/Minecraft.Client/TrackedEntity.cpp +++ b/Minecraft.Client/TrackedEntity.cpp @@ -653,12 +653,14 @@ shared_ptr<Packet> TrackedEntity::getAddEntityPacket() PlayerUID xuid = INVALID_XUID; PlayerUID OnlineXuid = INVALID_XUID; - // do not pass xuid/onlinxuid to cleints - //if( player != nullptr ) - //{ - // xuid = player->getXuid(); - // OnlineXuid = player->getOnlineXuid(); - //} + // do not pass xuid/onlinexuid to clients if dedicated server +#ifndef MINECRAFT_SERVER_BUILD + if( player != nullptr ) + { + xuid = player->getXuid(); + OnlineXuid = player->getOnlineXuid(); + } +#endif // 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<AddPlayerPacket>(player, xuid, OnlineXuid, xp, yp, zp, yRotp, xRotp, yHeadRotp); } |
