Fix nullable errors in TileAtmosphere.cs
This commit is contained in:
@@ -102,7 +102,7 @@ namespace Content.Server.Atmos
|
|||||||
public Vector2i GridIndices { get; }
|
public Vector2i GridIndices { get; }
|
||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
public ExcitedGroup ExcitedGroup { get; set; }
|
public ExcitedGroup? ExcitedGroup { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The air in this tile. If null, this tile is completely airblocked.
|
/// The air in this tile. If null, this tile is completely airblocked.
|
||||||
@@ -119,7 +119,7 @@ namespace Content.Server.Atmos
|
|||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
public bool BlocksAllAir => BlockedAirflow == AtmosDirection.All;
|
public bool BlocksAllAir => BlockedAirflow == AtmosDirection.All;
|
||||||
|
|
||||||
public TileAtmosphere(GridAtmosphereComponent atmosphereComponent, GridId gridIndex, Vector2i gridIndices, GasMixture mixture = null, bool immutable = false)
|
public TileAtmosphere(GridAtmosphereComponent atmosphereComponent, GridId gridIndex, Vector2i gridIndices, GasMixture? mixture = null, bool immutable = false)
|
||||||
{
|
{
|
||||||
IoCManager.InjectDependencies(this);
|
IoCManager.InjectDependencies(this);
|
||||||
_gridAtmosphereComponent = atmosphereComponent;
|
_gridAtmosphereComponent = atmosphereComponent;
|
||||||
|
|||||||
Reference in New Issue
Block a user