Identity fixes (#9701)
This commit is contained in:
@@ -6,6 +6,7 @@ namespace Content.Shared.IdentityManagement.Components;
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class IdentityBlockerComponent : Component
|
||||
{
|
||||
public bool Enabled = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -18,7 +18,8 @@ public abstract class SharedIdentitySystem : EntitySystem
|
||||
|
||||
private void OnSeeIdentity(EntityUid uid, IdentityBlockerComponent component, SeeIdentityAttemptEvent args)
|
||||
{
|
||||
args.Cancel();
|
||||
if (component.Enabled)
|
||||
args.Cancel();
|
||||
}
|
||||
|
||||
protected virtual void OnComponentInit(EntityUid uid, IdentityComponent component, ComponentInit args)
|
||||
|
||||
Reference in New Issue
Block a user