pass invalid_xuid to other players

This commit is contained in:
sylvessa 2026-03-23 15:56:05 -05:00
parent 77433dbd86
commit b6618fb023

View file

@ -519,6 +519,17 @@ void TrackedEntity::updatePlayer(EntityTracker *tracker, shared_ptr<ServerPlayer
{ {
seenBy.insert(sp); seenBy.insert(sp);
shared_ptr<Packet> packet = getAddEntityPacket(); shared_ptr<Packet> packet = getAddEntityPacket();
if (e->instanceof(eTYPE_SERVERPLAYER))
{
shared_ptr<AddPlayerPacket> addPlayerPkt = dynamic_pointer_cast<AddPlayerPacket>(packet);
if (addPlayerPkt != nullptr)
{
addPlayerPkt->xuid = INVALID_XUID;
addPlayerPkt->OnlineXuid = INVALID_XUID;
}
}
sp->connection->send(packet); sp->connection->send(packet);
xap = e->xd; xap = e->xd;