Replace GridEntityId with Owner (#12743)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user