From 160364e10050f4db26ce510e13482e8245b3931d Mon Sep 17 00:00:00 2001 From: Plykiya <58439124+Plykiya@users.noreply.github.com> Date: Fri, 12 Jul 2024 02:22:24 -0700 Subject: [PATCH] Update BiomeSystem.cs to not use Component.Owner (#29939) Update BiomeSystem.cs Co-authored-by: plykiya --- Content.Server/Parallax/BiomeSystem.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Content.Server/Parallax/BiomeSystem.cs b/Content.Server/Parallax/BiomeSystem.cs index 7e854e8bbf..d3919347f7 100644 --- a/Content.Server/Parallax/BiomeSystem.cs +++ b/Content.Server/Parallax/BiomeSystem.cs @@ -126,20 +126,18 @@ public sealed partial class BiomeSystem : SharedBiomeSystem 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) { -- 2.51.2