diff --git a/index.js b/index.js index c97b8542..62ffd9ba 100644 --- a/index.js +++ b/index.js @@ -237,7 +237,7 @@ async function connect (options) { reloadHotbarSelected(bot, numPressed - 1) } if (e.code === 'KeyQ') { - bot.tossStack(bot.heldItem) + if (bot.heldItem) bot.tossStack(bot.heldItem) } }, false)