ActionBlocker CanPickup uses EntityUid exclusively
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Content.Server.Access
|
||||
if (args.Hands == null ||
|
||||
!args.CanAccess ||
|
||||
!args.CanInteract ||
|
||||
!_actionBlockerSystem.CanPickup(args.User))
|
||||
!_actionBlockerSystem.CanPickup(args.User.Uid))
|
||||
return;
|
||||
|
||||
// Can we eject a privileged ID?
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace Content.Server.Chemistry.EntitySystems
|
||||
!args.CanAccess ||
|
||||
!args.CanInteract ||
|
||||
!component.HasBeaker ||
|
||||
!_actionBlockerSystem.CanPickup(args.User))
|
||||
!_actionBlockerSystem.CanPickup(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Content.Server.Chemistry.EntitySystems
|
||||
!args.CanAccess ||
|
||||
!args.CanInteract ||
|
||||
!component.HasBeaker ||
|
||||
!_actionBlockerSystem.CanPickup(args.User))
|
||||
!_actionBlockerSystem.CanPickup(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
!args.CanAccess ||
|
||||
!args.CanInteract ||
|
||||
!component.HasCell ||
|
||||
!_actionBlockerSystem.CanPickup(args.User))
|
||||
!_actionBlockerSystem.CanPickup(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Content.Server.PowerCell
|
||||
!args.CanInteract ||
|
||||
!component.ShowVerb ||
|
||||
!component.HasCell ||
|
||||
!_actionBlockerSystem.CanPickup(args.User))
|
||||
!_actionBlockerSystem.CanPickup(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace Content.Server.Weapon.Ranged.Barrels
|
||||
!args.CanInteract ||
|
||||
!component.PowerCellRemovable ||
|
||||
component.PowerCell == null ||
|
||||
!_actionBlockerSystem.CanPickup(args.User))
|
||||
!_actionBlockerSystem.CanPickup(args.User.Uid))
|
||||
return;
|
||||
|
||||
Verb verb = new();
|
||||
@@ -104,7 +104,7 @@ namespace Content.Server.Weapon.Ranged.Barrels
|
||||
!args.CanAccess ||
|
||||
!args.CanInteract ||
|
||||
!component.HasMagazine ||
|
||||
!_actionBlockerSystem.CanPickup(args.User))
|
||||
!_actionBlockerSystem.CanPickup(args.User.Uid))
|
||||
return;
|
||||
|
||||
if (component.MagNeedsOpenBolt && !component.BoltOpen)
|
||||
|
||||
Reference in New Issue
Block a user