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
@@ -5,7 +5,6 @@ using Content.Server.Tools;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Sound;
|
||||
using Content.Shared.Tools.Components;
|
||||
using Robust.Server.GameObjects;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -36,7 +35,7 @@ namespace Content.Server.AME.Components
|
||||
|
||||
async Task<bool> IInteractUsing.InteractUsing(InteractUsingEventArgs args)
|
||||
{
|
||||
if (!args.User.TryGetComponent<IHandsComponent>(out var hands))
|
||||
if (!args.User.HasComponent<HandsComponent>())
|
||||
{
|
||||
Owner.PopupMessage(args.User, Loc.GetString("ame-part-component-interact-using-no-hands"));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user