Fix gas tile overlays (#17397)

This commit is contained in:
metalgearsloth
2023-06-17 12:30:55 +10:00
committed by GitHub
parent b7ee34f5a7
commit 0bb9c6e6eb

View File

@@ -307,7 +307,7 @@ namespace Content.Server.Atmos.EntitySystems
{
// Not all grids have atmospheres.
if (!TryComp(grid, out GasTileOverlayComponent? overlay))
return;
continue;
List<GasOverlayChunk> dataToSend = new();
ev.UpdatedChunks[grid] = dataToSend;
@@ -322,7 +322,9 @@ namespace Content.Server.Atmos.EntitySystems
if (previousChunks != null &&
previousChunks.Contains(index) &&
value.LastUpdate != curTick)
{
continue;
}
dataToSend.Add(value);
}