From b309b3e48c909efd112a164fb239796b0040a5b4 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Tue, 19 Aug 2025 22:43:02 +0200 Subject: [PATCH] vending fix (#18299) --- code/modules/economy/vending.dm | 2 ++ tgui/packages/tgui/interfaces/Vending.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/code/modules/economy/vending.dm b/code/modules/economy/vending.dm index 73bfd7af94c..508432ef0f7 100644 --- a/code/modules/economy/vending.dm +++ b/code/modules/economy/vending.dm @@ -544,6 +544,8 @@ GLOBAL_LIST_EMPTY(vending_products) flick("[icon_state]-deny",src) playsound(src, 'sound/machines/deniedbeep.ogg', 50, 0) return FALSE + if(R.amount < 1) + return FALSE return TRUE /obj/machinery/vending/proc/vend(datum/stored_item/vending_product/R, mob/user) diff --git a/tgui/packages/tgui/interfaces/Vending.tsx b/tgui/packages/tgui/interfaces/Vending.tsx index 880059c35d6..8766b1de15e 100644 --- a/tgui/packages/tgui/interfaces/Vending.tsx +++ b/tgui/packages/tgui/interfaces/Vending.tsx @@ -158,6 +158,7 @@ export const VendingProductsGrid = (props: { products: product[] }) => {