Make more uids nullable (#5794)
This commit is contained in:
@@ -129,7 +129,7 @@ namespace Content.Server.PAI
|
||||
|
||||
private void AddWipeVerb(EntityUid uid, PAIComponent pai, GetActivationVerbsEvent args)
|
||||
{
|
||||
if (args.User == null || !args.CanAccess || !args.CanInteract)
|
||||
if (!args.CanAccess || !args.CanInteract)
|
||||
return;
|
||||
|
||||
if (EntityManager.TryGetComponent<MindComponent>(uid, out var mind) && mind.HasMind)
|
||||
|
||||
Reference in New Issue
Block a user