Firelock fixes (#12542)

* Firelock fixes

* review
This commit is contained in:
Leon Friedrich
2022-11-11 17:21:01 +13:00
committed by GitHub
parent 9415f1e0b3
commit 3a0c3b02b3
4 changed files with 17 additions and 12 deletions

View File

@@ -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);