Optimizes atmos
This commit is contained in:
@@ -640,7 +640,7 @@ namespace Content.Server.Atmos
|
||||
// Can't process a tile without air
|
||||
if (Air == null)
|
||||
{
|
||||
Excited = false;
|
||||
_gridAtmosphereComponent.RemoveActiveTile(this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -373,7 +373,7 @@ namespace Content.Server.GameObjects.Components.Atmos
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public virtual void AddActiveTile(TileAtmosphere tile)
|
||||
{
|
||||
if (tile?.GridIndex != _gridId) return;
|
||||
if (tile?.GridIndex != _gridId || tile.Air == null) return;
|
||||
tile.Excited = true;
|
||||
_activeTiles.Add(tile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user