Decal state handling (#12624)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user