From 4d38948317c19e4887ff75905c90afacd658af5f Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 27 Jan 2022 03:50:16 +0100 Subject: [PATCH] [MIRROR] Fixes removing attachments from guns [MDB IGNORE] (#11008) * Fixes removing attachments from guns (#64376) resolves #64211 canUseTopic check for removing gun attachments was reversed. So, you couldn't remove attachments unless you're out of reach of the gun or something. * Fixes removing attachments from guns Co-authored-by: blessedmulligan <30278162+blessedmulligan@users.noreply.github.com> --- code/modules/projectiles/gun.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm index f8c0f4d924e..69fde6ea858 100644 --- a/code/modules/projectiles/gun.dm +++ b/code/modules/projectiles/gun.dm @@ -459,7 +459,7 @@ var/obj/item/item_to_remove = tgui_input_list(user, "Attachment to remove", "Attachment Removal", sort_names(possible_items)) if(isnull(item_to_remove)) return - if(user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) + if(!user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) return return remove_gun_attachment(user, I, item_to_remove)