mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
Make decal gridinit use gridentityid (#8792)
This commit is contained in:
parent
6aa2050b96
commit
bf2d72cf42
1 changed files with 3 additions and 3 deletions
|
|
@ -41,13 +41,13 @@ namespace Content.Shared.Decals
|
|||
|
||||
private void OnGridInitialize(GridInitializeEvent msg)
|
||||
{
|
||||
var comp = EntityManager.EnsureComponent<DecalGridComponent>(MapManager.GetGrid(msg.GridId).GridEntityId);
|
||||
ChunkIndex[msg.GridId] = new();
|
||||
var comp = EntityManager.EnsureComponent<DecalGridComponent>(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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue