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
|
// Damaging it can delete it
|
||||||
if (!EntityManager.GetComponent<MetaDataComponent>(otherEntity).EntityDeleted &&
|
if (!Deleted(otherEntity) && HasComp<CameraRecoilComponent>(otherEntity))
|
||||||
EntityManager.HasComponent<CameraRecoilComponent>(otherEntity))
|
|
||||||
{
|
{
|
||||||
var direction = args.OurFixture.Body.LinearVelocity.Normalized;
|
var direction = args.OurFixture.Body.LinearVelocity.Normalized;
|
||||||
_cameraRecoil.KickCamera(otherEntity, direction);
|
_cameraRecoil.KickCamera(otherEntity, direction);
|
||||||
|
|||||||
Reference in New Issue
Block a user