check hand for item before dropping (#83)
prevents spam promise rejection in console when pressing q with empty hand
This commit is contained in:
parent
5cfe674d71
commit
0d0cda3e17
1 changed files with 1 additions and 1 deletions
2
index.js
2
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue