Skip to content

Commit

Permalink
Merge branch 'master' into harvester
Browse files Browse the repository at this point in the history
  • Loading branch information
Schrodinger71 authored Jan 7, 2025
2 parents 3cc7b59 + 77894b4 commit ad91f43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Content.Server/EntityEffects/Effects/Ignite.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Content.Server.Atmos.Components;
using Content.Server.Atmos.EntitySystems;
using Content.Shared.Database;
using Content.Shared.EntityEffects;
Expand All @@ -20,6 +21,11 @@ public sealed partial class Ignite : EntityEffect
public override void Effect(EntityEffectBaseArgs args)
{
var flamSys = args.EntityManager.System<FlammableSystem>();
// ADT Fix start
if (!args.EntityManager.HasComponent<FlammableComponent>(args.TargetEntity))
return;
// ADT Fix end

if (args is EntityEffectReagentArgs reagentArgs)
{
flamSys.Ignite(reagentArgs.TargetEntity, reagentArgs.OrganEntity ?? reagentArgs.TargetEntity);
Expand Down

0 comments on commit ad91f43

Please sign in to comment.