Decal state handling (#12624)

This commit is contained in:
Leon Friedrich
2022-12-19 08:28:46 +13:00
committed by GitHub
parent 2759ef009e
commit 8f352f87c2
8 changed files with 312 additions and 99 deletions

View File

@@ -122,9 +122,9 @@ namespace Content.MapRenderer.Painters
// for some reason decal moment i guess.
if (_sEntityManager.TryGetComponent<DecalGridComponent>(grid.Owner, out var comp))
{
foreach (var (_, list) in comp.ChunkCollection.ChunkCollection)
foreach (var chunk in comp.ChunkCollection.ChunkCollection.Values)
{
foreach (var (_, decal) in list)
foreach (var decal in chunk.Decals.Values)
{
var (x, y) = TransformLocalPosition(decal.Coordinates, grid);
decals.GetOrNew(grid.Owner).Add(new DecalData(decal, x, y));