mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
[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:
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
|
||||
|
||||
Reference in New Issue
Block a user