[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>
This commit is contained in:
SkyratBot
2022-01-27 02:50:16 +00:00
committed by GitHub
co-authored by blessedmulligan
parent d85167c95d
commit 4d38948317
+1 -1
View File
@@ -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)