[MIRROR] Fixes lockers unlocking without distance checks (#5871)

* Fixes lockers unlocking without distance checks (#59214)

* Fixes lockers unlocking without distance checks

Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-05-23 04:39:20 +01:00
committed by GitHub
co-authored by RandomGamer123
parent beb338b0af
commit 6c679e7590
@@ -454,6 +454,8 @@
open()
/obj/structure/closet/RightClick(mob/user, modifiers)
if(!user.canUseTopic(src, BE_CLOSE) || !isturf(loc))
return
if(!opened && secure)
togglelock(user)
return TRUE