From 661a569732df4122a8ac86e340cf1ccc16424e6a Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Tue, 18 Oct 2022 19:04:47 -0400 Subject: [PATCH] Fix big boxes not holding in air (#12031) --- .../Storage/Components/EntityStorageComponent.cs | 4 ++-- .../Storage/EntitySystems/EntityStorageSystem.cs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Content.Server/Storage/Components/EntityStorageComponent.cs b/Content.Server/Storage/Components/EntityStorageComponent.cs index a15911e584..000d44f942 100644 --- a/Content.Server/Storage/Components/EntityStorageComponent.cs +++ b/Content.Server/Storage/Components/EntityStorageComponent.cs @@ -70,8 +70,8 @@ public sealed class EntityStorageComponent : Component, IGasMixtureHolder /// /// Whether or not the container is sealed and traps air inside of it /// - [DataField("airTight"), ViewVariables(VVAccess.ReadWrite)] - public bool AirTight = true; + [DataField("airtight"), ViewVariables(VVAccess.ReadWrite)] + public bool Airtight = true; [DataField("open")] public bool Open; diff --git a/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs b/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs index c2117e298c..cd7cf0e66f 100644 --- a/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs +++ b/Content.Server/Storage/EntitySystems/EntityStorageSystem.cs @@ -384,7 +384,7 @@ public sealed class EntityStorageSystem : EntitySystem private void TakeGas(EntityUid uid, EntityStorageComponent component) { - if (!component.AirTight) + if (!component.Airtight) return; var tile = GetOffsetTileRef(uid, component); @@ -397,7 +397,7 @@ public sealed class EntityStorageSystem : EntitySystem private void ReleaseGas(EntityUid uid, EntityStorageComponent component) { - if (!component.AirTight) + if (!component.Airtight) return; var tile = GetOffsetTileRef(uid, component); @@ -425,7 +425,7 @@ public sealed class EntityStorageSystem : EntitySystem private void OnInsideInhale(EntityUid uid, InsideEntityStorageComponent component, InhaleLocationEvent args) { - if (TryComp(component.Storage, out var storage) && storage.AirTight) + if (TryComp(component.Storage, out var storage) && storage.Airtight) { args.Gas = storage.Air; } @@ -433,7 +433,7 @@ public sealed class EntityStorageSystem : EntitySystem private void OnInsideExhale(EntityUid uid, InsideEntityStorageComponent component, ExhaleLocationEvent args) { - if (TryComp(component.Storage, out var storage) && storage.AirTight) + if (TryComp(component.Storage, out var storage) && storage.Airtight) { args.Gas = storage.Air; } @@ -446,7 +446,7 @@ public sealed class EntityStorageSystem : EntitySystem if (TryComp(component.Storage, out var storage)) { - if (!storage.AirTight) + if (!storage.Airtight) return; args.Gas = storage.Air;