Entity storage air capacity changes (#14734)
This commit is contained in:
@@ -12,5 +12,6 @@ public sealed class EntityStorageComponent : SharedEntityStorageComponent, IGasM
|
||||
/// None while open. Grabs gas from the atmosphere when closed, and exposes any entities inside to it.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public GasMixture Air { get; set; } = new (GasMixVolume);
|
||||
[DataField("air")]
|
||||
public GasMixture Air { get; set; } = new (200);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public sealed class EntityStorageSystem : SharedEntityStorageSystem
|
||||
|
||||
if (tile != null && _atmos.GetTileMixture(tile.Value.GridUid, null, tile.Value.GridIndices, true) is {} environment)
|
||||
{
|
||||
_atmos.Merge(serverComp.Air, environment.RemoveVolume(SharedEntityStorageComponent.GasMixVolume));
|
||||
_atmos.Merge(serverComp.Air, environment.RemoveVolume(serverComp.Air.Volume));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user