mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
pass invalid_xuid to other players
This commit is contained in:
parent
77433dbd86
commit
b6618fb023
|
|
@ -519,6 +519,17 @@ void TrackedEntity::updatePlayer(EntityTracker *tracker, shared_ptr<ServerPlayer
|
|||
{
|
||||
seenBy.insert(sp);
|
||||
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);
|
||||
|
||||
xap = e->xd;
|
||||
|
|
|
|||
Loading…
Reference in a new issue