Fix infinite loop on click with button 1 (#147)

This commit is contained in:
Romain Beaumont 2021-03-23 23:26:21 +01:00 committed by GitHub
parent accabc8629
commit 1c1a66c57a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -409,6 +409,8 @@ async function connect (options) {
const delta = cursorBlock.intersect.minus(cursorBlock.position)
await bot._placeBlockWithOptions(cursorBlock, vec, { delta, forceLook: 'ignore' })
} else {
return
}
}
}, false)