Skip to content

Commit

Permalink
DeadDropSystem: check teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
whatston3 committed Oct 15, 2024
1 parent 1ff123b commit 61384b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Content.Server/_NF/Smuggling/DeadDropSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ public void CompromiseDeadDrop(EntityUid uid, DeadDropComponent _)
if (potentialDeadDrops.Count > 0)
{
var item = _random.Pick(potentialDeadDrops);

// If the item is tearing down, do nothing for now.
// FIXME: separate sector-wide scheduler?
if (MetaData(item.ent).EntityLifeStage >= EntityLifeStage.Terminating)
return;

AddDeadDrop(item.ent);
_sawmill.Debug($"Dead drop at {uid} compromised, new drop at {item.ent}!");
}
Expand Down

0 comments on commit 61384b3

Please sign in to comment.