Improve InteractionSystem range & BUI checks (#27999)
* Improve InteractionSystem range & BUI checks * Ghost fixes * AAA * Fix test * fix nullable * revert to broadcast event * Fixes for eengine PR * Ah buckle code * )
This commit is contained in:
@@ -502,13 +502,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
return distance <= action.Range;
|
||||
}
|
||||
|
||||
if (_interactionSystem.InRangeUnobstructed(user, target, range: action.Range)
|
||||
&& _containerSystem.IsInSameOrParentContainer(user, target))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return _interactionSystem.CanAccessViaStorage(user, target);
|
||||
return _interactionSystem.InRangeAndAccessible(user, target, range: action.Range);
|
||||
}
|
||||
|
||||
public bool ValidateWorldTarget(EntityUid user, EntityCoordinates coords, Entity<WorldTargetActionComponent> action)
|
||||
|
||||
Reference in New Issue
Block a user