EntityStringRepresentation in logs correctly parse the EntityUid and player
This commit is contained in:
@@ -57,6 +57,7 @@ public partial class AdminLogSystem
|
||||
EntityUid? entityId = properties[key] switch
|
||||
{
|
||||
EntityUid id => id,
|
||||
EntityStringRepresentation rep => rep.Uid,
|
||||
IPlayerSession {AttachedEntity: {Valid: true}} session => session.AttachedEntity,
|
||||
IComponent component => component.Owner,
|
||||
_ => null
|
||||
|
||||
Reference in New Issue
Block a user