Skip to content

Commit

Permalink
Update LockSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Jan 7, 2024
1 parent 9094f5d commit 03994a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Shared/Lock/LockSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ private void OnEmagged(EntityUid uid, LockComponent component, ref GotEmaggedEve

if (!component.Locked || !component.BreakOnEmag)
return;
_audio.PlayPredicted(component.UnlockSound, uid, null, AudioParams.Default.WithVolume(-5));
//_audio.PlayPredicted(component.UnlockSound, uid, null, AudioParams.Default.WithVolume(-5)); // 2 Times audio
_appearanceSystem.SetData(uid, StorageVisuals.Locked, false);
//RemComp<LockComponent>(uid); //Literally destroys the lock as a tell it was emagged // Frontier - Has to remove this to allow fixing locks
component.Locked = false;
component.Locked = false; // Disable lock
args.Handled = true;
}

Expand Down

0 comments on commit 03994a7

Please sign in to comment.