Lipid Extractor (#15597)
This commit is contained in:
@@ -203,7 +203,7 @@ public sealed class LockSystem : EntitySystem
|
||||
private bool HasUserAccess(EntityUid uid, EntityUid user, AccessReaderComponent? reader = null, bool quiet = true)
|
||||
{
|
||||
// Not having an AccessComponent means you get free access. woo!
|
||||
if (!Resolve(uid, ref reader))
|
||||
if (!Resolve(uid, ref reader, false))
|
||||
return true;
|
||||
|
||||
if (_accessReader.IsAllowed(user, reader))
|
||||
@@ -234,7 +234,7 @@ public sealed class LockSystem : EntitySystem
|
||||
|
||||
private void OnEmagged(EntityUid uid, LockComponent component, ref GotEmaggedEvent args)
|
||||
{
|
||||
if (!component.Locked)
|
||||
if (!component.Locked || !component.BreakOnEmag)
|
||||
return;
|
||||
_audio.PlayPredicted(component.UnlockSound, uid, null, AudioParams.Default.WithVolume(-5));
|
||||
_appearanceSystem.SetData(uid, StorageVisuals.Locked, false);
|
||||
|
||||
Reference in New Issue
Block a user