fix splitscreen xuids (#1413)

This commit is contained in:
Sylvessa 2026-03-26 09:19:20 -05:00 committed by GitHub
parent 1a50770647
commit c96a8ee524
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -653,12 +653,14 @@ shared_ptr<Packet> TrackedEntity::getAddEntityPacket()
PlayerUID xuid = INVALID_XUID; PlayerUID xuid = INVALID_XUID;
PlayerUID OnlineXuid = INVALID_XUID; PlayerUID OnlineXuid = INVALID_XUID;
// do not pass xuid/onlinxuid to cleints // do not pass xuid/onlinexuid to clients if dedicated server
//if( player != nullptr ) #ifndef MINECRAFT_SERVER_BUILD
//{ if( player != nullptr )
// xuid = player->getXuid(); {
// OnlineXuid = player->getOnlineXuid(); 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. // 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); return std::make_shared<AddPlayerPacket>(player, xuid, OnlineXuid, xp, yp, zp, yRotp, xRotp, yHeadRotp);
} }