Disable the lock/unlock verb if we can't do that (#39605)
* Fix * Update
This commit is contained in:
@@ -309,6 +309,7 @@ public sealed class LockSystem : EntitySystem
|
||||
|
||||
AlternativeVerb verb = new()
|
||||
{
|
||||
Disabled = !CanToggleLock(uid, args.User),
|
||||
Act = component.Locked
|
||||
? () => TryUnlock(uid, args.User, component)
|
||||
: () => TryLock(uid, args.User, component),
|
||||
|
||||
Reference in New Issue
Block a user