mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
[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:
co-authored by
blessedmulligan
parent
d85167c95d
commit
4d38948317
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user