// When a player gets renamed their id card is renamed as well to match.
// Unfortunately since TryFindIdCard will succeed if the entity is also a card this means that the card will
// keep renaming itself unless we return early.
- if (HasComp<IdCardComponent>(ev.Uid))
+ // We also do not include the PDA itself being renamed, as that triggers the same event (e.g. for chameleon PDAs).
+ if (HasComp<IdCardComponent>(ev.Uid) || HasComp<PdaComponent>(ev.Uid))
return;
if (TryFindIdCard(ev.Uid, out var idCard))