From bf2d72cf42dbd2a4fccf60923a5f2274f598b22d Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 12 Jun 2022 17:53:11 +1000 Subject: [PATCH] Make decal gridinit use gridentityid (#8792) --- Content.Shared/Decals/SharedDecalSystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Shared/Decals/SharedDecalSystem.cs b/Content.Shared/Decals/SharedDecalSystem.cs index cf3b406442..ede333a8ba 100644 --- a/Content.Shared/Decals/SharedDecalSystem.cs +++ b/Content.Shared/Decals/SharedDecalSystem.cs @@ -41,13 +41,13 @@ namespace Content.Shared.Decals private void OnGridInitialize(GridInitializeEvent msg) { - var comp = EntityManager.EnsureComponent(MapManager.GetGrid(msg.GridId).GridEntityId); - ChunkIndex[msg.GridId] = new(); + var comp = EntityManager.EnsureComponent(msg.EntityUid); + ChunkIndex[msg.EntityUid] = new(); foreach (var (indices, decals) in comp.ChunkCollection.ChunkCollection) { foreach (var uid in decals.Keys) { - ChunkIndex[msg.GridId][uid] = indices; + ChunkIndex[msg.EntityUid][uid] = indices; } } }