Fix interact using sometimes having target==used (#6847)
This commit is contained in:
@@ -216,6 +216,12 @@ namespace Content.Shared.Interaction
|
||||
if (checkCanUse && !_actionBlockerSystem.CanUseHeldEntity(user))
|
||||
return;
|
||||
|
||||
if (target == hand.HeldEntity)
|
||||
{
|
||||
UseInHandInteraction(user, target.Value, checkCanUse: false, checkCanInteract: false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (inRangeUnobstructed && target != null)
|
||||
{
|
||||
InteractUsing(
|
||||
|
||||
Reference in New Issue
Block a user