@@ -249,10 +249,6 @@ namespace Content.Server.Doors.Systems
|
||||
// achieving all this using existing atmos functions, and the functionality is too specialized to bother
|
||||
// adding new public atmos system functions.
|
||||
|
||||
|
||||
// TODO redo this with planet/map atmospheres
|
||||
// there is probably a faster way of doing this. tbh I kinda hate the atmos method events for making
|
||||
// accessing tile data directly such a pain. Dealting with maps will make it even more painful.
|
||||
List<Vector2i> tiles = new(4);
|
||||
List<AtmosDirection> directions = new(4);
|
||||
for (var i = 0; i < Atmospherics.Directions; i++)
|
||||
@@ -270,7 +266,7 @@ namespace Content.Server.Doors.Systems
|
||||
if (airtight.AirBlockedDirection != AtmosDirection.All)
|
||||
tiles.Add(pos);
|
||||
|
||||
var gasses = _atmosSystem.GetTileMixtures(gridAtmosphere.Owner, null, tiles);
|
||||
var gasses = _atmosSystem.GetTileMixtures(gridAtmosphere.Owner, xform.MapUid, tiles);
|
||||
if (gasses == null)
|
||||
return (false, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user