mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-19 07:01:09 +03:00
fix-alt click (#5977)
This commit is contained in:
parent
d6915b934f
commit
d02b49b501
1 changed files with 14 additions and 16 deletions
|
|
@ -156,23 +156,21 @@ namespace Content.Shared.Interaction
|
|||
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
// We are close to the nearby object.
|
||||
if (altInteract)
|
||||
// Perform alternative interactions, using context menu verbs.
|
||||
AltInteract(user, target.Value);
|
||||
|
||||
if (!hands.TryGetActiveHeldEntity(out var heldEntity))
|
||||
{
|
||||
// Since our hand is empty we will use InteractHand/Activate
|
||||
InteractHand(user, target.Value);
|
||||
}
|
||||
else if (heldEntity != target)
|
||||
{
|
||||
await InteractUsing(user, heldEntity.Value, target.Value, coordinates);
|
||||
}
|
||||
|
||||
// We are close to the nearby object.
|
||||
if (altInteract)
|
||||
{
|
||||
// Perform alternative interactions, using context menu verbs.
|
||||
AltInteract(user, target.Value);
|
||||
}
|
||||
else if (!hands.TryGetActiveHeldEntity(out var heldEntity))
|
||||
{
|
||||
// Since our hand is empty we will use InteractHand/Activate
|
||||
InteractHand(user, target.Value);
|
||||
}
|
||||
else if (heldEntity != target)
|
||||
{
|
||||
await InteractUsing(user, heldEntity.Value, target.Value, coordinates);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue