AtmosDebugOverlay fixes (#5099)

This commit is contained in:
metalgearsloth
2021-10-31 14:40:57 +01:00
committed by GitHub
parent bec6799442
commit 569e75b987
2 changed files with 16 additions and 15 deletions
@@ -62,8 +62,8 @@ namespace Content.Client.Atmos.EntitySystems
base.Shutdown();
_mapManager.OnGridRemoved -= OnGridRemoved;
var overlayManager = IoCManager.Resolve<IOverlayManager>();
if(!overlayManager.HasOverlay<GasTileOverlay>())
overlayManager.RemoveOverlay<GasTileOverlay>();
if (overlayManager.HasOverlay<AtmosDebugOverlay>())
overlayManager.RemoveOverlay<AtmosDebugOverlay>();
}
public void Reset(RoundRestartCleanupEvent ev)