Skip duplicate uids in admin log (#5528)
This commit is contained in:
@@ -72,6 +72,8 @@ public partial class AdminLogSystem
|
|||||||
? resolvedEntity.Name
|
? resolvedEntity.Name
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
|
if (entities.Any(e => e.id == (int) uid)) continue;
|
||||||
|
|
||||||
entities.Add(((int) uid, entityName));
|
entities.Add(((int) uid, entityName));
|
||||||
|
|
||||||
if (_entityManager.TryGetComponent(uid, out ActorComponent? actor))
|
if (_entityManager.TryGetComponent(uid, out ActorComponent? actor))
|
||||||
|
|||||||
Reference in New Issue
Block a user