From 3ba0c01e4f357f1aaa796abfb6d93ac260f43796 Mon Sep 17 00:00:00 2001 From: mirrorcult Date: Fri, 28 May 2021 02:20:16 -0700 Subject: [PATCH] Fix being able to fill beakers through walls (#4103) --- .../Components/Chemistry/SolutionTransferComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Chemistry/SolutionTransferComponent.cs b/Content.Server/GameObjects/Components/Chemistry/SolutionTransferComponent.cs index 7ac131e929..099f4afa31 100644 --- a/Content.Server/GameObjects/Components/Chemistry/SolutionTransferComponent.cs +++ b/Content.Server/GameObjects/Components/Chemistry/SolutionTransferComponent.cs @@ -4,6 +4,7 @@ using Content.Shared.Chemistry; using Content.Shared.GameObjects.Components.Chemistry; using Content.Shared.Interfaces; using Content.Shared.Interfaces.GameObjects.Components; +using Content.Shared.Utility; using Robust.Shared.GameObjects; using Robust.Shared.Localization; using Robust.Shared.Serialization.Manager.Attributes; @@ -47,7 +48,7 @@ namespace Content.Server.GameObjects.Components.Chemistry async Task IAfterInteract.AfterInteract(AfterInteractEventArgs eventArgs) { - if (!eventArgs.CanReach || eventArgs.Target == null) + if (!eventArgs.InRangeUnobstructed() || eventArgs.Target == null) return false; if (!Owner.TryGetComponent(out ISolutionInteractionsComponent? ownerSolution))