[MIRROR] vending fix (#11466)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-19 23:26:54 +02:00
committed by GitHub
co-authored by Kashargul
parent 57c5f03aa2
commit d900fbf428
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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)
@@ -158,6 +158,7 @@ export const VendingProductsGrid = (props: { products: product[] }) => {
<ImageButton
key={product.key}
asset={product.isatom ? ['vending32x32', product.path] : undefined}
disabled={!product.amount}
tooltip={`${capitalizeAll(product.name)}${product.desc ? ` - ${product.desc}` : ''}`}
tooltipPosition="bottom-end"
buttonsAlt={