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