From 08a220d3e6333788e363712ea03a44fee876b817 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Thu, 3 Mar 2022 02:38:19 +1300 Subject: [PATCH] Fix rcd obstruction check (#6963) --- Content.Server/RCD/Systems/RCDSystem.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Content.Server/RCD/Systems/RCDSystem.cs b/Content.Server/RCD/Systems/RCDSystem.cs index 9c19afcc6b..f6a44a98d0 100644 --- a/Content.Server/RCD/Systems/RCDSystem.cs +++ b/Content.Server/RCD/Systems/RCDSystem.cs @@ -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)