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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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);
}