Skip to content

Commit

Permalink
Cherry-picked commit deac5a6 from space-wizards/space-station-14/master
Browse files Browse the repository at this point in the history
  • Loading branch information
nikthechampiongr authored and SimpleStation14 committed Apr 21, 2024
1 parent 3bf08c7 commit 21d7eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Doors/Components/AirlockComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public sealed partial class AirlockComponent : Component
public bool Safety = true;

[ViewVariables(VVAccess.ReadWrite)]
[DataField]
[DataField, AutoNetworkedField]
public bool EmergencyAccess = false;

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions Content.Shared/Doors/Systems/SharedAirlockSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 21d7eb3

Please sign in to comment.