diff --git a/code/modules/mining/abandoned_crates.dm b/code/modules/mining/abandoned_crates.dm
index 1a08e7bba69..e49c3b75ac6 100644
--- a/code/modules/mining/abandoned_crates.dm
+++ b/code/modules/mining/abandoned_crates.dm
@@ -154,11 +154,11 @@
if(100)
new /obj/item/clothing/head/bearpelt(src)
-/obj/structure/closet/crate/secure/loot/togglelock(mob/user as mob)
+/obj/structure/closet/crate/secure/loot/attack_hand(mob/user as mob)
if(locked)
user << "The crate is locked with a Deca-code lock."
var/input = input(usr, "Enter [codelen] digits.", "Deca-Code Lock", "") as text
- if(in_range(src, user) || !user.incapacitated())
+ if(in_range(src, user) && !user.incapacitated())
if (input == code)
user << "The crate unlocks!"
locked = 0
@@ -173,12 +173,9 @@
if (attempts == 0)
user << "The crate's anti-tamper system activates!"
var/turf/T = get_turf(src.loc)
- explosion(T, 0, 0, 0, 1)
+ explosion(T, -1, -1, 1, 1)
qdel(src)
return
- else
- user << "You attempt to interact with the device using a hand gesture, but it appears this crate is from before the DECANECT came out."
- return
else
return ..()
@@ -187,7 +184,7 @@
if (istype(W, /obj/item/weapon/card/emag))
user << "The crate's anti-tamper system activates!"
var/turf/T = get_turf(src.loc)
- explosion(T, 0, 0, 0, 1)
+ explosion(T, -1, -1, 1, 1)
qdel(src)
return
if (istype(W, /obj/item/device/multitool))