Skip to content

Commit a0e92ca

Browse files
authored
Update inventory.js (#3507)
1 parent f2dd3a3 commit a0e92ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/inventory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function inject (bot, { hideErrors }) {
263263
const itemType = options.itemType
264264
const metadata = options.metadata
265265
const nbt = options.nbt
266-
let count = options.count === null ? 1 : options.count
266+
let count = (options.count === undefined || options.count === null) ? 1 : options.count
267267
let firstSourceSlot = null
268268

269269
// ranges

0 commit comments

Comments
 (0)