From 804440047d156a23cf2badeee526bb5272d97cab Mon Sep 17 00:00:00 2001 From: PondWader <66561610+PondWader@users.noreply.github.com> Date: Mon, 26 Jun 2023 17:25:05 +0100 Subject: [PATCH] lint --- lib/plugins/place_block.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/place_block.js b/lib/plugins/place_block.js index f027c0564..65340b2de 100644 --- a/lib/plugins/place_block.js +++ b/lib/plugins/place_block.js @@ -10,9 +10,9 @@ function inject (bot) { let newBlock = bot.blockAt(dest) if (oldBlock.type === newBlock.type) { - [oldBlock, newBlock] = await onceWithCleanup(bot, `blockUpdate:${dest}`, { + [oldBlock, newBlock] = await onceWithCleanup(bot, `blockUpdate:${dest}`, { timeout: 5000, - checkCondition: (oldBlock, newBlock) => !oldBlock || !newBlock|| oldBlock.type !== newBlock.type + checkCondition: (oldBlock, newBlock) => !oldBlock || !newBlock || oldBlock.type !== newBlock.type }) }