Improve test stability (#10913)
This commit is contained in:
@@ -395,7 +395,8 @@ namespace Content.Shared.Body.Components
|
||||
var gibs = new HashSet<EntityUid>();
|
||||
foreach (var part in SlotParts.Keys)
|
||||
{
|
||||
if (!metaQuery.HasComponent(part.Owner))
|
||||
if (!metaQuery.TryGetComponent(part.Owner, out var meta) ||
|
||||
meta.EntityLifeStage >= EntityLifeStage.Terminating)
|
||||
{
|
||||
SlotParts.Remove(part);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user