From f4bbe7aea6af0dacbc7322e86f8990e0a931736c Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 6 Aug 2022 16:48:55 +1000 Subject: [PATCH] Fix bullet impact effect exception (#10357) --- Content.Client/Projectiles/ProjectileSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Client/Projectiles/ProjectileSystem.cs b/Content.Client/Projectiles/ProjectileSystem.cs index 1869d7a690..f5121bbff0 100644 --- a/Content.Client/Projectiles/ProjectileSystem.cs +++ b/Content.Client/Projectiles/ProjectileSystem.cs @@ -20,6 +20,9 @@ public sealed class ProjectileSystem : SharedProjectileSystem private void OnProjectileImpact(ImpactEffectEvent ev) { + if (Deleted(ev.Coordinates.EntityId)) + return; + var ent = Spawn(ev.Prototype, ev.Coordinates); if (TryComp(ent, out var sprite))