mirror of
https://github.com/PrismarineJS/prismarine-web-client.git
synced 2025-03-16 23:29:48 -04:00
Fix infinite loop on click with button 1 (#147)
This commit is contained in:
parent
accabc8629
commit
1c1a66c57a
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue