mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-21 20:27:42 +01:00
[MIRROR] vending fix (#11466)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
57c5f03aa2
commit
d900fbf428
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user