Skip to content

Commit 11facc1

Browse files
authored
Merge pull request ARF-SS13#882 from DevArchwave/networkinggobrr
Fix IPC encryption key mispredict (DeltaV #2879)
2 parents 4dae2ca + e6a3d46 commit 11facc1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎Content.Server/_EinsteinEngines/Silicon/EncryptionHolderRequiresLock/EncryptionHolderRequiresLockSystem.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ private void LockToggled(EntityUid uid, EncryptionHolderRequiresLockComponent co
2323
return;
2424

2525
keyHolder.KeysUnlocked = !lockComp.Locked;
26+
Dirty(uid, keyHolder); // DeltaV
2627
_encryptionKeySystem.UpdateChannels(uid, keyHolder);
2728
}
2829
}

‎Content.Shared/Radio/Components/EncryptionKeyHolderComponent.cs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
using Content.Shared.Tools;
33
using Robust.Shared.Audio;
44
using Robust.Shared.Containers;
5+
using Robust.Shared.GameStates; // DeltaV
56
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
67

78
namespace Content.Shared.Radio.Components;
89

910
/// <summary>
1011
/// This component is by entities that can contain encryption keys
1112
/// </summary>
12-
[RegisterComponent]
13+
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] // DeltaV: Network it
1314
public sealed partial class EncryptionKeyHolderComponent : Component
1415
{
1516
/// <summary>
1617
/// Whether or not encryption keys can be removed from the headset.
1718
/// </summary>
1819
[ViewVariables(VVAccess.ReadWrite)]
1920
[DataField("keysUnlocked")]
21+
[AutoNetworkedField] // DeltaV
2022
public bool KeysUnlocked = true;
2123

2224
/// <summary>

0 commit comments

Comments
 (0)