Fix decals (finally) (#7771)
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Decals
|
||||
@@ -11,5 +7,6 @@ namespace Content.Shared.Decals
|
||||
public sealed class DecalChunkUpdateEvent : EntityEventArgs
|
||||
{
|
||||
public Dictionary<GridId, Dictionary<Vector2i, Dictionary<uint, Decal>>> Data = new();
|
||||
public Dictionary<GridId, HashSet<Vector2i>> RemovedChunks = new();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace Content.Shared.Decals
|
||||
if (chunkCollection[indices].Count == 0)
|
||||
chunkCollection.Remove(indices);
|
||||
|
||||
ChunkIndex[gridId]?.Remove(uid);
|
||||
ChunkIndex[gridId].Remove(uid);
|
||||
DirtyChunk(gridId, indices);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user