mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
Make vended items land on the vendor again. (#28245)
This commit is contained in:
+3
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user