Fix rcd obstruction check (#6963)
This commit is contained in:
@@ -160,14 +160,8 @@ namespace Content.Server.RCD.Systems
|
||||
return false;
|
||||
}
|
||||
|
||||
var coordinates = mapGrid.ToCoordinates(tile.GridIndices);
|
||||
if (coordinates == EntityCoordinates.Invalid)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var unobstructed = eventArgs.Target == null
|
||||
? _interactionSystem.InRangeUnobstructed(eventArgs.User, coordinates, popup: true)
|
||||
? _interactionSystem.InRangeUnobstructed(eventArgs.User, mapGrid.GridTileToWorld(tile.GridIndices), popup: true)
|
||||
: _interactionSystem.InRangeUnobstructed(eventArgs.User, eventArgs.Target.Value, popup: true);
|
||||
|
||||
if (!unobstructed)
|
||||
|
||||
Reference in New Issue
Block a user