Adds fixgridatmos command for mapping and admining

This commit is contained in:
Vera Aguilera Puerto
2021-03-04 13:07:10 +01:00
parent ed3bd41e0d
commit 5109d1d853
3 changed files with 79 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
#nullable enable
using Content.Server.Administration;
using Content.Server.Atmos;
using Content.Server.GameObjects.Components.Atmos;
using Content.Shared.Administration;
using Content.Shared.Atmos;
@@ -42,13 +43,13 @@ namespace Content.Server.Commands.Atmos
return;
}
if (!grid.HasComponent<GridAtmosphereComponent>())
if (!grid.HasComponent<IGridAtmosphereComponent>())
{
shell.WriteLine("Grid doesn't have an atmosphere.");
return;
}
var gam = grid.GetComponent<GridAtmosphereComponent>();
var gam = grid.GetComponent<IGridAtmosphereComponent>();
foreach (var tile in gam)
{