Fix deletion check in ProjectileSystem.
Another casualty from the IEntity removal.
This commit is contained in:
@@ -66,8 +66,7 @@ namespace Content.Server.Projectiles
|
||||
}
|
||||
|
||||
// Damaging it can delete it
|
||||
if (!EntityManager.GetComponent<MetaDataComponent>(otherEntity).EntityDeleted &&
|
||||
EntityManager.HasComponent<CameraRecoilComponent>(otherEntity))
|
||||
if (!Deleted(otherEntity) && HasComp<CameraRecoilComponent>(otherEntity))
|
||||
{
|
||||
var direction = args.OurFixture.Body.LinearVelocity.Normalized;
|
||||
_cameraRecoil.KickCamera(otherEntity, direction);
|
||||
|
||||
Reference in New Issue
Block a user