Fix miasma deletion error (#11385)
This commit is contained in:
@@ -238,7 +238,8 @@ namespace Content.Server.Atmos.Miasma
|
|||||||
|
|
||||||
private void OnFliesShutdown(EntityUid uid, FliesComponent component, ComponentShutdown args)
|
private void OnFliesShutdown(EntityUid uid, FliesComponent component, ComponentShutdown args)
|
||||||
{
|
{
|
||||||
EntityManager.DeleteEntity(component.VirtFlies);
|
if (!Terminating(uid))
|
||||||
|
Del(component.VirtFlies);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Public functions
|
/// Public functions
|
||||||
|
|||||||
Reference in New Issue
Block a user