Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat committed Jan 7, 2025
1 parent 229ee1c commit 1184242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/externalTests/plugins/testCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function inject (bot) {
async function setInventorySlot (targetSlot, item) {
// DEBUG
bot._client.on('packet', function (data, meta) {
console.log(meta.name, JSON.stringify(data).slice(0, 100))
console.log(meta.name, JSON.stringify(data)?.slice(0, 100))
})
assert(item === null || item.name !== 'unknown', `item should not be unknown ${JSON.stringify(item)}`)
return bot.creative.setInventorySlot(targetSlot, item)
Expand Down

0 comments on commit 1184242

Please sign in to comment.