]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Small Status Effect Cleanup (#39944)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Fri, 29 Aug 2025 13:32:13 +0000 (06:32 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Aug 2025 13:32:13 +0000 (16:32 +0300)
Heroic

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Shared/StatusEffectNew/StatusEffectsSystem.cs

index b385a12fb86e1d162c23421d2753332ba4ecb38c..750868481e1336236868a26f95d9f5870753a98d 100644 (file)
@@ -55,11 +55,7 @@ public sealed partial class StatusEffectsSystem : EntitySystem
             if (effect.AppliedTo is null)
                 continue;
 
-            var meta = MetaData(ent);
-            if (meta.EntityPrototype is null)
-                continue;
-
-            TryRemoveStatusEffect(effect.AppliedTo.Value, meta.EntityPrototype);
+            PredictedQueueDel(ent);
         }
     }