ActionBlocker CanDrop uses EntityUid exclusively

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 13:23:50 +01:00
parent 190612a350
commit 51e785c0fd
11 changed files with 21 additions and 29 deletions

View File

@@ -7,7 +7,7 @@ using Robust.Shared.Localization;
namespace Content.Server.Access
{
public class IdCardConsoleSystem : EntitySystem
public class IdCardConsoleSystem : EntitySystem
{
[Dependency] private readonly ActionBlockerSystem _actionBlockerSystem = default!;
@@ -24,10 +24,10 @@ namespace Content.Server.Access
!args.CanAccess ||
!args.CanInteract ||
!args.Using.HasComponent<IdCardComponent>() ||
!_actionBlockerSystem.CanDrop(args.User))
!_actionBlockerSystem.CanDrop(args.User.Uid))
return;
// Can we insert a privileged ID?
// Can we insert a privileged ID?
if (component.PrivilegedIDEmpty)
{
Verb verb = new();
@@ -56,7 +56,7 @@ namespace Content.Server.Access
!_actionBlockerSystem.CanPickup(args.User))
return;
// Can we eject a privileged ID?
// Can we eject a privileged ID?
if (!component.PrivilegedIDEmpty)
{
Verb verb = new();