Fix incorrect if statement in FlammableSystem.
Should fix the FlammableComponent resolve errors on live servers.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user