Fix force-feeding pills (#9554)

This commit is contained in:
themias
2022-07-08 23:57:17 -04:00
committed by GitHub
parent 83aa5e1414
commit dcdb05fe96

View File

@@ -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;
}