From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 27 Mar 2023 18:41:38 +0000 (+1100) Subject: Use RemCompDeferred for portals (#14896) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=9afb7533747375cdcb450e94bfa64cfeec295e25;p=space-station-14.git Use RemCompDeferred for portals (#14896) --- diff --git a/Content.Shared/Teleportation/Systems/SharedPortalSystem.cs b/Content.Shared/Teleportation/Systems/SharedPortalSystem.cs index 6523ce575e..b24047fcea 100644 --- a/Content.Shared/Teleportation/Systems/SharedPortalSystem.cs +++ b/Content.Shared/Teleportation/Systems/SharedPortalSystem.cs @@ -132,7 +132,7 @@ public abstract class SharedPortalSystem : EntitySystem // if they came from (not us), remove the timeout if (TryComp(subject, out var timeout) && timeout.EnteredPortal != uid) { - RemComp(subject); + RemCompDeferred(subject); } }