From eb5f447e7aa6490794948e9ebccb84a7bf13c448 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Wed, 6 Oct 2021 03:02:03 +1100 Subject: [PATCH] fix lock system interact handle (#4772) --- Content.Server/Lock/LockSystem.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Server/Lock/LockSystem.cs b/Content.Server/Lock/LockSystem.cs index 00fa900829..c2da4d635d 100644 --- a/Content.Server/Lock/LockSystem.cs +++ b/Content.Server/Lock/LockSystem.cs @@ -46,11 +46,13 @@ namespace Content.Server.Lock // Only attempt an unlock by default on Activate if (lockComp.Locked) { - args.Handled = TryUnlock(uid, args.User, lockComp); + TryUnlock(uid, args.User, lockComp); + args.Handled = true; } else if (lockComp.LockOnClick) { - args.Handled = TryLock(uid, args.User, lockComp); + TryLock(uid, args.User, lockComp); + args.Handled = true; } }