From 21d7eb368e7432b644e52526ff2c5ed404b737c1 Mon Sep 17 00:00:00 2001 From: nikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com> Date: Mon, 11 Mar 2024 12:50:09 +1100 Subject: [PATCH] Cherry-picked commit deac5a6842a88944b06c0b4d75da751880ddf12b from space-wizards/space-station-14/master --- Content.Shared/Doors/Components/AirlockComponent.cs | 2 +- Content.Shared/Doors/Systems/SharedAirlockSystem.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Doors/Components/AirlockComponent.cs b/Content.Shared/Doors/Components/AirlockComponent.cs index dd8241c64ec..b2fa7574f76 100644 --- a/Content.Shared/Doors/Components/AirlockComponent.cs +++ b/Content.Shared/Doors/Components/AirlockComponent.cs @@ -21,7 +21,7 @@ public sealed partial class AirlockComponent : Component public bool Safety = true; [ViewVariables(VVAccess.ReadWrite)] - [DataField] + [DataField, AutoNetworkedField] public bool EmergencyAccess = false; /// diff --git a/Content.Shared/Doors/Systems/SharedAirlockSystem.cs b/Content.Shared/Doors/Systems/SharedAirlockSystem.cs index a3172bb8c3a..5a6d45d9ec0 100644 --- a/Content.Shared/Doors/Systems/SharedAirlockSystem.cs +++ b/Content.Shared/Doors/Systems/SharedAirlockSystem.cs @@ -126,6 +126,7 @@ public void UpdateEmergencyLightStatus(EntityUid uid, AirlockComponent component public void ToggleEmergencyAccess(EntityUid uid, AirlockComponent component) { component.EmergencyAccess = !component.EmergencyAccess; + Dirty(uid, component); // This only runs on the server apparently so we need this. UpdateEmergencyLightStatus(uid, component); }