Wires are now broken in explosions, and drop cables.
Using the wire cutters on a wire drops a cable. Fix bug where bullets raise an exception when the hit object deletes itself.
This commit is contained in:
@@ -77,7 +77,7 @@ namespace Content.Server.GameObjects.Components.Projectiles
|
||||
}
|
||||
}
|
||||
|
||||
if (entity.TryGetComponent(out CameraRecoilComponent recoilComponent)
|
||||
if (!entity.Deleted && entity.TryGetComponent(out CameraRecoilComponent recoilComponent)
|
||||
&& Owner.TryGetComponent(out PhysicsComponent physicsComponent))
|
||||
{
|
||||
var direction = physicsComponent.LinearVelocity.Normalized;
|
||||
|
||||
Reference in New Issue
Block a user