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

Commit a020c04

Browse files
fix
1 parent 51fce90 commit a020c04

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,23 +221,23 @@
221221

222222
return amount
223223

224-
/obj/machinery/icecream_vat/proc/dispense_item(obj/item/reagent_containers/food/snacks/received_item, mob/user = usr)
224+
/obj/machinery/icecream_vat/proc/dispense_item(obj/item/reagent_containers/food/snacks/received_item_type, mob/user = usr)
225225
//If the vat has some of the desired item, dispense it
226-
if(find_amount(received_item) > 0)
226+
if(find_amount(received_item_type) > 0)
227227
//Select the last(most recent) of desired item
228-
var/obj/item/reagent_containers/food/snacks/dispensed_item = LAZYACCESS(contents, last_index(received_item))
228+
var/obj/item/reagent_containers/food/snacks/dispensed_item = LAZYACCESS(contents, last_index(received_item_type))
229229
//Drop it on the floor and then move it into the user's hands
230230
dispensed_item.forceMove(loc)
231231
user.put_in_hands(dispensed_item)
232-
user.visible_message(span_notice("[user] dispenses [received_item::name] from [src]."), span_notice("You dispense [received_item::name] from [src]."))
232+
user.visible_message(span_notice("[user] dispenses [received_item_type::name] from [src]."), span_notice("You dispense [received_item_type::name] from [src]."))
233233
playsound(src, dispense_sound, 25, TRUE, extrarange = -3)
234234
else
235235
//For Alt click and because UI buttons are slow to disable themselves
236236
user.balloon_alert(user, "All out!")
237237

238238
/obj/machinery/icecream_vat/proc/select_item(obj/item/reagent_containers/food/snacks/received_item_type, mob/user = usr)
239239
//Deselecting
240-
if(istype(received_item_type, /obj/item/reagent_containers/food/snacks/ice_cream_cone))
240+
if(ispath(received_item_type, /obj/item/reagent_containers/food/snacks/ice_cream_cone))
241241
if(selected_cone_type == received_item_type)
242242
user.visible_message(span_notice("[user] deselects [received_item_type::name] from [src]."), span_notice("You deselect [received_item_type::name] from [src]."))
243243
selected_cone_type = null
@@ -253,7 +253,7 @@
253253
//Selecting
254254
if(find_amount(received_item_type) > 0)
255255
//Set item to selected based on its type
256-
if(istype(received_item_type, /obj/item/reagent_containers/food/snacks/ice_cream_cone))
256+
if(ispath(received_item_type, /obj/item/reagent_containers/food/snacks/ice_cream_cone))
257257
selected_cone_type = received_item_type
258258
else
259259
selected_scoop_type = received_item_type

0 commit comments

Comments
 (0)