Fixes admin logs and tests to not depend on IEntity caching (#5657)
Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
This commit is contained in:
committed by
GitHub
parent
c4c139041c
commit
3f8f4c818e
@@ -16,9 +16,9 @@ public class EntityUidConverter : AdminLogConverter<EntityUid>
|
||||
|
||||
writer.WriteNumber("id", (int) value);
|
||||
|
||||
if (entities.TryGetEntity(value, out var entity))
|
||||
if (entities.TryGetComponent(value, out MetaDataComponent metaData))
|
||||
{
|
||||
writer.WriteString("name", entity.Name);
|
||||
writer.WriteString("name", metaData.EntityName);
|
||||
}
|
||||
|
||||
if (entities.TryGetComponent(value, out ActorComponent? actor))
|
||||
|
||||
Reference in New Issue
Block a user