Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes duplicating items with vendors #6844

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions code/game/machinery/vending/cm_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,9 @@ GLOBAL_LIST_EMPTY(vending_products)
return
if(!ishuman(user))
return
// with tactical reloading/attaching attachments, a mousedrop can be held until said actions are complete. this can produce a buggy ghost item which we solve by checking if the items are attached/inside the weapon (by comparing if their loc equals to a weapon's)
if(istype(A.loc, /obj/item/weapon/gun))
return

// Try to bulk restock using a container
if(istype(A, /obj/item/storage))
Expand Down
Loading