Fix StealthSystem ensuring a comp on a terminating entity in tests (#19413)
This commit is contained in:
@@ -44,7 +44,7 @@ public sealed class StealthSystem : SharedStealthSystem
|
|||||||
|
|
||||||
if (!enabled)
|
if (!enabled)
|
||||||
{
|
{
|
||||||
if (component.HadOutline)
|
if (component.HadOutline && !TerminatingOrDeleted(uid))
|
||||||
EnsureComp<InteractionOutlineComponent>(uid);
|
EnsureComp<InteractionOutlineComponent>(uid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user