fix: stop right click emulation once window got opened eg chest
This commit is contained in:
parent
e81d608554
commit
d0d5234ba4
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ const domListeners = (bot: Bot) => {
|
|||
}, { signal: abortController.signal })
|
||||
|
||||
bot.mouse.beforeUpdateChecks = () => {
|
||||
if (!document.hasFocus()) {
|
||||
if (!document.hasFocus() || !isGameActive(true)) {
|
||||
// deactive all buttons
|
||||
bot.mouse.buttons.fill(false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue