diff --git a/Content.Server/Parallax/BiomeSystem.cs b/Content.Server/Parallax/BiomeSystem.cs index 7e854e8bbfb7..d3919347f769 100644 --- a/Content.Server/Parallax/BiomeSystem.cs +++ b/Content.Server/Parallax/BiomeSystem.cs @@ -126,20 +126,18 @@ private void OnBiomeMapInit(EntityUid uid, BiomeComponent component, MapInitEven var xform = Transform(uid); var mapId = xform.MapID; - if (mapId != MapId.Nullspace && TryComp(uid, out MapGridComponent? mapGrid)) + if (mapId != MapId.Nullspace && HasComp(uid)) { var setTiles = new List<(Vector2i Index, Tile tile)>(); - foreach (var grid in _mapManager.GetAllMapGrids(mapId)) + foreach (var grid in _mapManager.GetAllGrids(mapId)) { - var gridUid = grid.Owner; - - if (!_fixturesQuery.TryGetComponent(gridUid, out var fixtures)) + if (!_fixturesQuery.TryGetComponent(grid.Owner, out var fixtures)) continue; // Don't want shuttles flying around now do we. - _shuttles.Disable(gridUid); - var pTransform = _physics.GetPhysicsTransform(gridUid); + _shuttles.Disable(grid.Owner); + var pTransform = _physics.GetPhysicsTransform(grid.Owner); foreach (var fixture in fixtures.Fixtures.Values) {