Skip to content

Commit

Permalink
Update ProjectileCE_BunkerBuster.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
CMDR-Bill-Doors committed Nov 17, 2023
1 parent de8ea1b commit 4f6709d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ public override void Impact(Thing hitThing)
postExplosionGasType: props.postExplosionGasType
);

if (this.TryGetComp<CompFragments>() != null)
foreach (var comp in GetComps<CompFragments>())
{
this.TryGetComp<CompFragments>().Throw(finalPos.ToVector3(), this.Map, this);
comp.Throw(finalPos.ToVector3(), this.Map, this);
}

this.Destroy();
Expand Down

0 comments on commit 4f6709d

Please sign in to comment.