From 5a47b9e6b55288ebaf28967e75e283a29eaadd2f Mon Sep 17 00:00:00 2001 From: not-pyroman <45698803+not-pyroman@users.noreply.github.com> Date: Fri, 3 May 2024 01:25:23 -0600 Subject: [PATCH] Apaparently tired me didn't think negatives could ever be a possibility made a check for inventory get if we're above 0, instead of the incorrect not equal to -1 check --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index aea782d..5a1ee93 100644 --- a/index.js +++ b/index.js @@ -299,7 +299,7 @@ client.on("interactionCreate", async interaction => { user = interaction.options.getUser("user") || interaction.user; amount = await checkOwnedItems(interaction.options.getUser("user") || interaction.user, item); _item = item.charAt(0).toUpperCase() + item.slice(1) - if (amount != -1) { + if (amount > 0) { inv.push(`${config.items[item]} ${_item}: ${amount}`) } }