Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 48f2f7b

Browse files
baiomu's review changes
1 parent acf3c90 commit 48f2f7b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

code/modules/food_and_drinks/kitchen_machinery/food_cart.dm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@
213213
if(find_amount(ui_item) > 0)
214214
//Select the last(most recent) of desired item
215215
var/obj/item/reagent_containers/food/snacks/dispensed_item = LAZYACCESS(contents, last_index(ui_item))
216-
//Drop it on the floor and then move it into the user's hands
217-
dispensed_item.forceMove(loc)
216+
//Move it into the user's hands or drop it on the floor
218217
user.put_in_hands(dispensed_item)
219218
user.visible_message(span_notice("[user] dispenses [dispensed_item.name] from [src]."), span_notice("You dispense [dispensed_item.name] from [src]."))
220219
playsound(src, dispense_sound, 25, TRUE, extrarange = -3)
@@ -229,7 +228,7 @@
229228
qdel(ui_item)
230229

231230
/obj/machinery/food_cart/proc/storage_single(obj/item/target_item, mob/user = usr)
232-
//Check if there is room
231+
//Check if there is room, subtract by 1 since the cart's reagent container is added to its contents
233232
if(contents.len - 1 < contents_capacity)
234233
//If item's typepath is not already in food_ui_list, add it
235234
if(!LAZYFIND(food_ui_list, target_item.type))

0 commit comments

Comments
 (0)