fix-alt click (#5977)
This commit is contained in:
@@ -156,23 +156,21 @@ namespace Content.Shared.Interaction
|
|||||||
|
|
||||||
return;
|
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))
|
// We are close to the nearby object.
|
||||||
{
|
if (altInteract)
|
||||||
// Since our hand is empty we will use InteractHand/Activate
|
{
|
||||||
InteractHand(user, target.Value);
|
// Perform alternative interactions, using context menu verbs.
|
||||||
}
|
AltInteract(user, target.Value);
|
||||||
else if (heldEntity != target)
|
}
|
||||||
{
|
else if (!hands.TryGetActiveHeldEntity(out var heldEntity))
|
||||||
await InteractUsing(user, heldEntity.Value, target.Value, coordinates);
|
{
|
||||||
}
|
// 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user