From d2d35afd470c30fe66dbe19d3a3f31bad5405295 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 18 Sep 2022 11:10:32 +1200 Subject: [PATCH] Fix miasma deletion error (#11385) --- Content.Server/Atmos/Miasma/MiasmaSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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