Replace GridEntityId with Owner (#12743)

This commit is contained in:
metalgearsloth
2022-12-12 14:59:02 +11:00
committed by GitHub
parent 4cbf78646a
commit 3b3963083b
75 changed files with 190 additions and 190 deletions

View File

@@ -31,7 +31,7 @@ namespace Content.Server.Atmos.Commands
var atmosphereSystem = EntitySystem.Get<AtmosphereSystem>();
foreach (var tile in atmosphereSystem.GetAllMixtures(grid.GridEntityId, true))
foreach (var tile in atmosphereSystem.GetAllMixtures(grid.Owner, true))
{
tile.AdjustMoles(gasId, moles);
}

View File

@@ -37,7 +37,7 @@ namespace Content.Server.Atmos.Commands
var atmosphereSystem = EntitySystem.Get<AtmosphereSystem>();
var tiles = 0;
foreach (var tile in atmosphereSystem.GetAllMixtures(gridComp.GridEntityId, true))
foreach (var tile in atmosphereSystem.GetAllMixtures(gridComp.Owner, true))
{
tiles++;
tile.Temperature = temperature;

View File

@@ -43,8 +43,8 @@ namespace Content.Server.Atmos.Commands
var atmospheres = _entities.EntitySysManager.GetEntitySystem<AtmosphereSystem>();
var indices = new Vector2i(x, y);
var tile = atmospheres.GetTileMixture(grid.GridEntityId, null, indices, true);
var tile = atmospheres.GetTileMixture(grid.Owner, null, indices, true);
if (tile == null)
{