From dcdb05fe9661e984fa5528a0268af408322452be Mon Sep 17 00:00:00 2001 From: themias <89101928+themias@users.noreply.github.com> Date: Fri, 8 Jul 2022 23:57:17 -0400 Subject: [PATCH] Fix force-feeding pills (#9554) --- Content.Server/DoAfter/DoAfter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/DoAfter/DoAfter.cs b/Content.Server/DoAfter/DoAfter.cs index f46965118b..05c927ff35 100644 --- a/Content.Server/DoAfter/DoAfter.cs +++ b/Content.Server/DoAfter/DoAfter.cs @@ -173,7 +173,7 @@ namespace Content.Server.DoAfter //recalculate Target location in case Target has also moved var targetCoordinates = xformQuery.GetComponent(EventArgs.Target.Value).Coordinates; userXform ??= xformQuery.GetComponent(EventArgs.User); - if (userXform.Coordinates.InRange(entityManager, targetCoordinates, EventArgs.DistanceThreshold.Value)) + if (!userXform.Coordinates.InRange(entityManager, targetCoordinates, EventArgs.DistanceThreshold.Value)) return true; }