ActionBlocker CanPickup uses EntityUid exclusively

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 13:43:39 +01:00
parent b82cb38bf9
commit 9921801f15
11 changed files with 17 additions and 23 deletions

View File

@@ -625,7 +625,7 @@ namespace Content.Shared.Hands.Components
/// <returns></returns>
protected bool PlayerCanPickup()
{
if (!IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<ActionBlockerSystem>().CanPickup(Owner))
if (!EntitySystem.Get<ActionBlockerSystem>().CanPickup(Owner.Uid))
return false;
return true;