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:
@@ -281,7 +281,7 @@ namespace Content.Server.GameObjects.Components.Atmos
|
|||||||
public void AddActiveTile(TileAtmosphere? tile)
|
public void AddActiveTile(TileAtmosphere? tile)
|
||||||
{
|
{
|
||||||
if (!Owner.TryGetComponent(out IMapGridComponent? mapGrid)) return;
|
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;
|
tile.Excited = true;
|
||||||
_activeTiles.Add(tile);
|
_activeTiles.Add(tile);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user