Fix gas tile overlays (#17397)
This commit is contained in:
@@ -307,7 +307,7 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
{
|
{
|
||||||
// Not all grids have atmospheres.
|
// Not all grids have atmospheres.
|
||||||
if (!TryComp(grid, out GasTileOverlayComponent? overlay))
|
if (!TryComp(grid, out GasTileOverlayComponent? overlay))
|
||||||
return;
|
continue;
|
||||||
|
|
||||||
List<GasOverlayChunk> dataToSend = new();
|
List<GasOverlayChunk> dataToSend = new();
|
||||||
ev.UpdatedChunks[grid] = dataToSend;
|
ev.UpdatedChunks[grid] = dataToSend;
|
||||||
@@ -322,7 +322,9 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
if (previousChunks != null &&
|
if (previousChunks != null &&
|
||||||
previousChunks.Contains(index) &&
|
previousChunks.Contains(index) &&
|
||||||
value.LastUpdate != curTick)
|
value.LastUpdate != curTick)
|
||||||
|
{
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
dataToSend.Add(value);
|
dataToSend.Add(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user