From: Partmedia Date: Wed, 12 Jun 2024 22:56:07 +0000 (-0800) Subject: Fix queued deletion check (singulo loosing at beyond PA 1 but only on live servers... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=35e5a96b7ebb73c67b3fade4d6ed731028dfc551;p=space-station-14.git Fix queued deletion check (singulo loosing at beyond PA 1 but only on live servers) (#28906) Fix queued deletion check --- diff --git a/Content.Server/Singularity/EntitySystems/EventHorizonSystem.cs b/Content.Server/Singularity/EntitySystems/EventHorizonSystem.cs index d7b83d4439..e6c627f353 100644 --- a/Content.Server/Singularity/EntitySystems/EventHorizonSystem.cs +++ b/Content.Server/Singularity/EntitySystems/EventHorizonSystem.cs @@ -116,10 +116,12 @@ public sealed class EventHorizonSystem : SharedEventHorizonSystem /// public void ConsumeEntity(EntityUid hungry, EntityUid morsel, EventHorizonComponent eventHorizon, BaseContainer? outerContainer = null) { - if (!EntityManager.IsQueuedForDeletion(morsel) // I saw it log twice a few times for some reason? - && (HasComp(morsel) + if (EntityManager.IsQueuedForDeletion(morsel)) // already handled, and we're substepping + return; + + if (HasComp(morsel) || _tagSystem.HasTag(morsel, "HighRiskItem") - || HasComp(morsel))) + || HasComp(morsel)) { _adminLogger.Add(LogType.EntityDelete, LogImpact.Extreme, $"{ToPrettyString(morsel)} entered the event horizon of {ToPrettyString(hungry)} and was deleted"); }