diff --git a/lib/plugins/inventory.js b/lib/plugins/inventory.js index d538711d3..d38048b7b 100644 --- a/lib/plugins/inventory.js +++ b/lib/plugins/inventory.js @@ -263,7 +263,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 === undefined || options.count === null) ? 1 : options.count let firstSourceSlot = null // ranges