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