diff --git a/test/externalTests/plugins/testCommon.js b/test/externalTests/plugins/testCommon.js index 20ce5a592..64912eade 100644 --- a/test/externalTests/plugins/testCommon.js +++ b/test/externalTests/plugins/testCommon.js @@ -142,12 +142,14 @@ function inject (bot) { } } + // DEBUG + bot._client.on('packet', function (data, meta) { + if (['chunk', 'time', 'light', 'alive'].some(e => meta.name.includes(e))) return + console.log('->', meta.name, JSON.stringify(data)?.slice(0, 100)) + }) + // you need to be in creative mode for this to work async function setInventorySlot (targetSlot, item) { - // DEBUG - bot._client.on('packet', function (data, meta) { - 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) }