From a67b8467861eb34ef3c4a21cfdb70906c53c9639 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Fri, 4 Mar 2022 17:44:23 +0100 Subject: [PATCH] Fix deletion check in ProjectileSystem. Another casualty from the IEntity removal. --- Content.Server/Projectiles/ProjectileSystem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Content.Server/Projectiles/ProjectileSystem.cs b/Content.Server/Projectiles/ProjectileSystem.cs index 721d1687aa..51ab16bc36 100644 --- a/Content.Server/Projectiles/ProjectileSystem.cs +++ b/Content.Server/Projectiles/ProjectileSystem.cs @@ -66,8 +66,7 @@ namespace Content.Server.Projectiles } // Damaging it can delete it - if (!EntityManager.GetComponent(otherEntity).EntityDeleted && - EntityManager.HasComponent(otherEntity)) + if (!Deleted(otherEntity) && HasComp(otherEntity)) { var direction = args.OurFixture.Body.LinearVelocity.Normalized; _cameraRecoil.KickCamera(otherEntity, direction);