]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix queued deletion check (singulo loosing at beyond PA 1 but only on live servers...
authorPartmedia <kevinz5000@gmail.com>
Wed, 12 Jun 2024 22:56:07 +0000 (14:56 -0800)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2024 22:56:07 +0000 (15:56 -0700)
Fix queued deletion check

Content.Server/Singularity/EntitySystems/EventHorizonSystem.cs

index d7b83d4439915beff42e9157ff2762df35432de9..e6c627f353e2bb831f86179db5171239d5fadd44 100644 (file)
@@ -116,10 +116,12 @@ public sealed class EventHorizonSystem : SharedEventHorizonSystem
     /// </summary>
     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<MindContainerComponent>(morsel)
+        if (EntityManager.IsQueuedForDeletion(morsel)) // already handled, and we're substepping
+            return;
+
+        if (HasComp<MindContainerComponent>(morsel)
             || _tagSystem.HasTag(morsel, "HighRiskItem")
-            || HasComp<ContainmentFieldGeneratorComponent>(morsel)))
+            || HasComp<ContainmentFieldGeneratorComponent>(morsel))
         {
             _adminLogger.Add(LogType.EntityDelete, LogImpact.Extreme, $"{ToPrettyString(morsel)} entered the event horizon of {ToPrettyString(hungry)} and was deleted");
         }