Fix big boxes not holding in air (#12031)

This commit is contained in:
Nemanja
2022-10-18 19:04:47 -04:00
committed by GitHub
parent cff335174c
commit 661a569732
2 changed files with 7 additions and 7 deletions

View File

@@ -70,8 +70,8 @@ public sealed class EntityStorageComponent : Component, IGasMixtureHolder
/// <summary> /// <summary>
/// Whether or not the container is sealed and traps air inside of it /// Whether or not the container is sealed and traps air inside of it
/// </summary> /// </summary>
[DataField("airTight"), ViewVariables(VVAccess.ReadWrite)] [DataField("airtight"), ViewVariables(VVAccess.ReadWrite)]
public bool AirTight = true; public bool Airtight = true;
[DataField("open")] [DataField("open")]
public bool Open; public bool Open;

View File

@@ -384,7 +384,7 @@ public sealed class EntityStorageSystem : EntitySystem
private void TakeGas(EntityUid uid, EntityStorageComponent component) private void TakeGas(EntityUid uid, EntityStorageComponent component)
{ {
if (!component.AirTight) if (!component.Airtight)
return; return;
var tile = GetOffsetTileRef(uid, component); var tile = GetOffsetTileRef(uid, component);
@@ -397,7 +397,7 @@ public sealed class EntityStorageSystem : EntitySystem
private void ReleaseGas(EntityUid uid, EntityStorageComponent component) private void ReleaseGas(EntityUid uid, EntityStorageComponent component)
{ {
if (!component.AirTight) if (!component.Airtight)
return; return;
var tile = GetOffsetTileRef(uid, component); var tile = GetOffsetTileRef(uid, component);
@@ -425,7 +425,7 @@ public sealed class EntityStorageSystem : EntitySystem
private void OnInsideInhale(EntityUid uid, InsideEntityStorageComponent component, InhaleLocationEvent args) private void OnInsideInhale(EntityUid uid, InsideEntityStorageComponent component, InhaleLocationEvent args)
{ {
if (TryComp<EntityStorageComponent>(component.Storage, out var storage) && storage.AirTight) if (TryComp<EntityStorageComponent>(component.Storage, out var storage) && storage.Airtight)
{ {
args.Gas = storage.Air; args.Gas = storage.Air;
} }
@@ -433,7 +433,7 @@ public sealed class EntityStorageSystem : EntitySystem
private void OnInsideExhale(EntityUid uid, InsideEntityStorageComponent component, ExhaleLocationEvent args) private void OnInsideExhale(EntityUid uid, InsideEntityStorageComponent component, ExhaleLocationEvent args)
{ {
if (TryComp<EntityStorageComponent>(component.Storage, out var storage) && storage.AirTight) if (TryComp<EntityStorageComponent>(component.Storage, out var storage) && storage.Airtight)
{ {
args.Gas = storage.Air; args.Gas = storage.Air;
} }
@@ -446,7 +446,7 @@ public sealed class EntityStorageSystem : EntitySystem
if (TryComp<EntityStorageComponent>(component.Storage, out var storage)) if (TryComp<EntityStorageComponent>(component.Storage, out var storage))
{ {
if (!storage.AirTight) if (!storage.Airtight)
return; return;
args.Gas = storage.Air; args.Gas = storage.Air;