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.
This commit is contained in:
blessedmulligan
2022-01-26 00:36:42 +00:00
committed by GitHub
parent 4bd5ad5552
commit 2121df09de
+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)