Replace GridEntityId with Owner (#12743)
This commit is contained in:
@@ -65,7 +65,7 @@ public sealed partial class AtmosphereSystem
|
||||
if (!_mapManager.TryGetGrid(newGrid, out var mapGrid))
|
||||
continue;
|
||||
|
||||
var entity = mapGrid.GridEntityId;
|
||||
var entity = mapGrid.Owner;
|
||||
|
||||
// If the new split grid has an atmosphere already somehow, use that. Otherwise, add a new one.
|
||||
if (!TryComp(entity, out GridAtmosphereComponent? newGridAtmos))
|
||||
@@ -555,7 +555,7 @@ public sealed partial class AtmosphereSystem
|
||||
{
|
||||
var ev = new UpdateAdjacentMethodEvent(uid, position);
|
||||
GridUpdateAdjacent(uid, gridAtmosphere, ref ev);
|
||||
InvalidateVisuals(mapGrid.GridEntityId, position);
|
||||
InvalidateVisuals(mapGrid.Owner, position);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user