From bb0bfa070244182bc08987d2d0cddba142a541e5 Mon Sep 17 00:00:00 2001 From: Pix3lPirat3 Date: Mon, 16 Sep 2024 21:13:08 -0700 Subject: [PATCH] Update inventory.js Patches window.deposit throwing an error if "count" arg is undefined --- lib/plugins/inventory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/inventory.js b/lib/plugins/inventory.js index 0277f3fef..522caa941 100644 --- a/lib/plugins/inventory.js +++ b/lib/plugins/inventory.js @@ -249,7 +249,7 @@ function inject (bot, { hideErrors }) { const itemType = options.itemType const metadata = options.metadata const nbt = options.nbt - let count = options.count === null ? 1 : options.count + let count = options.count == null ? 1 : options.count let firstSourceSlot = null // ranges