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

Commit 5e469d8

Browse files
Fixed logic error in pour_glass code
1 parent 4056ed7 commit 5e469d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

code/modules/food_and_drinks/kitchen_machinery/food_cart_TGUI.dm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
if("pour")
126126
pour_glass()
127127

128-
129128
/obj/machinery/food_cart_TGUI/Initialize(mapload)
130129
. = ..()
131130
//Create reagents holder for drinks
@@ -192,7 +191,7 @@
192191
/obj/machinery/food_cart_TGUI/proc/pour_glass(mob/user = usr)
193192
//Check if there are any glasses in storage
194193
if(glass_quantity > 0)
195-
glass_quantity -= 0
194+
glass_quantity -= 1
196195
//Create new glass
197196
var/obj/item/reagent_containers/food/drinks/drinkingglass/drink = new(loc)
198197
//Move all reagents in mixer to glass

0 commit comments

Comments
 (0)