Remove IHandsComponent and ISharedHandsComponent (#5218)
* Remove IHandsComponent and ISharedHandsComponent * Copy the documentation from the interfaces * Revert "Copy the documentation from the interfaces" This reverts commit 7638a2d4817743d487c7b255ba3e56add77dca86. * Perform a minute amount of cleanup
This commit is contained in:
committed by
GitHub
parent
162cde1b32
commit
ec9e65951c
@@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Content.Shared.DragDrop;
|
||||
using Content.Shared.Hands.Components;
|
||||
using Content.Shared.Interaction.Events;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
using static Content.Shared.Inventory.EquipmentSlotDefines;
|
||||
@@ -17,7 +16,7 @@ namespace Content.Shared.Strip.Components
|
||||
public bool CanBeStripped(IEntity by)
|
||||
{
|
||||
return by != Owner
|
||||
&& by.HasComponent<ISharedHandsComponent>()
|
||||
&& by.HasComponent<SharedHandsComponent>()
|
||||
&& EntitySystem.Get<ActionBlockerSystem>().CanInteract(by);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user