From f8a48319a6447d01da5d52439c6acbcaf93bd589 Mon Sep 17 00:00:00 2001 From: Vordenburg <114301317+Vordenburg@users.noreply.github.com> Date: Sat, 5 Aug 2023 00:29:52 -0400 Subject: [PATCH] Don't raise ContactInteraction for paused entities (#18435) --- Content.Shared/Interaction/SharedInteractionSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Shared/Interaction/SharedInteractionSystem.cs b/Content.Shared/Interaction/SharedInteractionSystem.cs index 8f0f52c7a3..d4c8342022 100644 --- a/Content.Shared/Interaction/SharedInteractionSystem.cs +++ b/Content.Shared/Interaction/SharedInteractionSystem.cs @@ -1121,6 +1121,9 @@ namespace Content.Shared.Interaction if (!Exists(uidA) || !Exists(uidB)) return; + if (Paused(uidA) || Paused(uidB.Value)) + return; + RaiseLocalEvent(uidA, new ContactInteractionEvent(uidB.Value)); RaiseLocalEvent(uidB.Value, new ContactInteractionEvent(uidA)); }