Adds fixgridatmos command for mapping and admining
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user