Fix mech double interactions (#14672)
This commit is contained in:
@@ -240,7 +240,12 @@ namespace Content.Shared.Interaction
|
||||
{
|
||||
if (TryComp<InteractionRelayComponent>(user, out var relay) && relay.RelayEntity is not null)
|
||||
{
|
||||
UserInteraction(relay.RelayEntity.Value, coordinates, target, altInteract, checkCanInteract, checkAccess, checkCanUse);
|
||||
// TODO this needs to be handled better. This probably bypasses many complex can-interact checks in weird roundabout ways.
|
||||
if (_actionBlockerSystem.CanInteract(user, target))
|
||||
{
|
||||
UserInteraction(relay.RelayEntity.Value, coordinates, target, altInteract, checkCanInteract, checkAccess, checkCanUse);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (target != null && Deleted(target.Value))
|
||||
|
||||
Reference in New Issue
Block a user