Fix adjacent tile atmosphere creation using the wrong coordinates. (#9539)

This commit is contained in:
Vera Aguilera Puerto
2022-07-08 14:30:45 +02:00
committed by GitHub
parent 520464e89b
commit 4917943c3d

View File

@@ -333,8 +333,8 @@ public sealed partial class AtmosphereSystem
if (!component.Tiles.TryGetValue(otherIndices, out var adjacent)) if (!component.Tiles.TryGetValue(otherIndices, out var adjacent))
{ {
adjacent = new TileAtmosphere(tile.GridIndex, otherIndices, adjacent = new TileAtmosphere(tile.GridIndex, otherIndices,
GetTileMixture(uid, mapUid, args.Tile), GetTileMixture(null, mapUid, otherIndices),
space:IsTileSpace(uid, mapUid, otherIndices, mapGridComp)); space:IsTileSpace(null, mapUid, otherIndices, mapGridComp));
} }
var oppositeDirection = direction.GetOpposite(); var oppositeDirection = direction.GetOpposite();