Make vended items land on the vendor again. (#28245)

This commit is contained in:
Charlie Nolan
2025-02-05 18:27:49 +00:00
committed by GitHub
parent e9c8f5ed8c
commit c4a378e571
+3 -1
View File
@@ -904,7 +904,9 @@
/obj/machinery/economy/vending/proc/do_vend(datum/data/vending_product/R, mob/user, put_in_hands = TRUE)
var/vended = R.vend(loc)
if(put_in_hands && isliving(user) && istype(vended, /obj/item) && Adjacent(user))
user.put_in_hands(vended)
// Try the active hand first, then the inactive hand, and leave it here if both fail
if(!user.put_in_active_hand(vended))
user.put_in_inactive_hand(vended)
return vended
/* Example override for do_vend proc: