diff --git a/Content.Server/Atmos/Miasma/MiasmaSystem.cs b/Content.Server/Atmos/Miasma/MiasmaSystem.cs index f298a37041..14dc86f0d9 100644 --- a/Content.Server/Atmos/Miasma/MiasmaSystem.cs +++ b/Content.Server/Atmos/Miasma/MiasmaSystem.cs @@ -238,7 +238,8 @@ namespace Content.Server.Atmos.Miasma private void OnFliesShutdown(EntityUid uid, FliesComponent component, ComponentShutdown args) { - EntityManager.DeleteEntity(component.VirtFlies); + if (!Terminating(uid)) + Del(component.VirtFlies); } /// Public functions