Fix overlapping popups for entity storages you can't access (#39039)

* fix: don't overlap popups for locked storages

* fix: tweak some lock i18n
This commit is contained in:
Perry Fraser
2025-07-17 19:44:45 -04:00
committed by GitHub
parent ada0e4cb6f
commit a093a2dd28
3 changed files with 8 additions and 6 deletions

View File

@@ -73,11 +73,13 @@ public sealed class LockSystem : EntitySystem
// Only attempt an unlock by default on Activate
if (lockComp.Locked && lockComp.UnlockOnClick)
{
args.Handled = TryUnlock(uid, args.User, lockComp);
args.Handled = true;
TryUnlock(uid, args.User, lockComp);
}
else if (!lockComp.Locked && lockComp.LockOnClick)
{
args.Handled = TryLock(uid, args.User, lockComp);
args.Handled = true;
TryLock(uid, args.User, lockComp);
}
}