diff --git a/Content.Server/Atmos/EntitySystems/FlammableSystem.cs b/Content.Server/Atmos/EntitySystems/FlammableSystem.cs index a92a95294d..7bafd60d7e 100644 --- a/Content.Server/Atmos/EntitySystems/FlammableSystem.cs +++ b/Content.Server/Atmos/EntitySystems/FlammableSystem.cs @@ -54,12 +54,15 @@ namespace Content.Server.Atmos.EntitySystems private void IgniteOnCollide(EntityUid uid, IgniteOnCollideComponent component, StartCollideEvent args) { - var otherfixture = args.OtherFixture.Body.Owner; - if (EntityManager.TryGetComponent(otherfixture, out FlammableComponent flammable)) - flammable.FireStacks += component.FireStacks; - Ignite(otherfixture, flammable); - } + var otherFixture = args.OtherFixture.Body.Owner; + if (!EntityManager.TryGetComponent(otherFixture, out FlammableComponent flammable)) + return; + + flammable.FireStacks += component.FireStacks; + Ignite(otherFixture, flammable); + } + private void OnInteractUsingEvent(EntityUid uid, FlammableComponent flammable, InteractUsingEvent args) { if (args.Handled)