Fix incorrect if statement in FlammableSystem.

Should fix the FlammableComponent resolve errors on live servers.
This commit is contained in:
Vera Aguilera Puerto
2022-03-03 11:48:27 +01:00
parent c0fd26a744
commit e292418766

View File

@@ -54,10 +54,13 @@ 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))
var otherFixture = args.OtherFixture.Body.Owner;
if (!EntityManager.TryGetComponent(otherFixture, out FlammableComponent flammable))
return;
flammable.FireStacks += component.FireStacks;
Ignite(otherfixture, flammable);
Ignite(otherFixture, flammable);
}
private void OnInteractUsingEvent(EntityUid uid, FlammableComponent flammable, InteractUsingEvent args)