Remove IInteractUsing (#9718)

This commit is contained in:
Kara
2022-07-14 04:42:54 -07:00
committed by GitHub
parent 068209498d
commit b001b03523
2 changed files with 0 additions and 48 deletions

View File

@@ -623,16 +623,6 @@ namespace Content.Shared.Interaction
if (interactUsingEvent.Handled)
return;
var interactUsingEventArgs = new InteractUsingEventArgs(user, clickLocation, used, target);
var interactUsings = AllComps<IInteractUsing>(target).OrderByDescending(x => x.Priority);
foreach (var interactUsing in interactUsings)
{
// If an InteractUsing returns a status completion we finish our interaction
if (await interactUsing.InteractUsing(interactUsingEventArgs))
return;
}
InteractDoAfter(user, used, target, clickLocation, canReach: true);
}