diff --git a/Content.Server/Decals/DecalSystem.cs b/Content.Server/Decals/DecalSystem.cs index 3a3ab0bbcd..0dcb0b31f3 100644 --- a/Content.Server/Decals/DecalSystem.cs +++ b/Content.Server/Decals/DecalSystem.cs @@ -454,9 +454,14 @@ namespace Content.Server.Decals previouslySent.Remove(netGrid); // Was the grid deleted? - if (TryGetEntity(netGrid, out var gridId) && !MapManager.IsGrid(gridId.Value)) + if (TryGetEntity(netGrid, out var gridId) && HasComp(gridId.Value)) { - // If grid was deleted then don't worry about telling the client to delete the chunk. + // no -> add it to the list of stale chunks + staleChunks[netGrid] = oldIndices; + } + else + { + // If the grid was deleted then don't worry about telling the client to delete the chunk. oldIndices.Clear(); _chunkIndexPool.Return(oldIndices); }