AddActiveTile doesn't check if the tile's gasmixture is null anymore.

Fixes race condition where an airtight tile without a gas mixture wouldn't become active after the vacuum is fixed.
This commit is contained in:
Víctor Aguilera Puerto
2020-09-03 15:31:42 +02:00
parent 5f4b806d13
commit 17ea79076a

View File

@@ -281,7 +281,7 @@ namespace Content.Server.GameObjects.Components.Atmos
public void AddActiveTile(TileAtmosphere? tile)
{
if (!Owner.TryGetComponent(out IMapGridComponent? mapGrid)) return;
if (tile?.GridIndex != mapGrid.Grid.Index || tile?.Air == null) return;
if (tile?.GridIndex != mapGrid.Grid.Index) return;
tile.Excited = true;
_activeTiles.Add(tile);
}