More portal fixes (#13359)
fixes https://github.com/space-wizards/space-station-14/issues/13338 fixes https://github.com/space-wizards/space-station-14/issues/13337
This commit is contained in:
@@ -40,7 +40,7 @@ public sealed class LinkedEntitySystem : EntitySystem
|
||||
// Remove any links to this entity when deleted.
|
||||
foreach (var ent in component.LinkedEntities.ToArray())
|
||||
{
|
||||
if (LifeStage(ent) < EntityLifeStage.Terminating && TryComp<LinkedEntityComponent>(ent, out var link))
|
||||
if (!Deleted(ent) && LifeStage(ent) < EntityLifeStage.Terminating && TryComp<LinkedEntityComponent>(ent, out var link))
|
||||
{
|
||||
TryUnlink(uid, ent, component, link);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user