From 038fca482d1d3bbe20190e7050ca2906913dfea2 Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Mon, 7 Aug 2017 22:19:12 +0100 Subject: [PATCH] Fixes repairing jumpsuits. --- code/modules/clothing/clothing.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 9b75bb817f9..ee6c1edd26c 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -546,6 +546,8 @@ BLIND // can't see anything has_sensor = HAS_SENSORS to_chat(user,"You repair the suit sensors on [src] with [C].") return 1 + if(!attach_accessory(I, user)) + return ..() /obj/item/clothing/under/update_clothes_damaged_state(damaging = TRUE) ..() @@ -592,10 +594,6 @@ BLIND // can't see anything ..() -/obj/item/clothing/under/attackby(obj/item/I, mob/user, params) - if(!attach_accessory(I, user)) - ..() - /obj/item/clothing/under/proc/attach_accessory(obj/item/I, mob/user, notifyAttach = 1) . = FALSE if(istype(I, /obj/item/clothing/accessory))