fix lock system interact handle (#4772)

This commit is contained in:
Leon Friedrich
2021-10-06 03:02:03 +11:00
committed by GitHub
parent bc62e500fe
commit eb5f447e7a

View File

@@ -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;
}
}