Auto Clicker

Auto Clicker

361k Downloads

Autoclicker fails to work if `speed` is set to `1`

AdyTech99 opened this issue ยท 2 comments

commented

Describe the bug
If you set the speed option to 1 in the config, the autoclicker will click once then completely fail to do anything.

To Reproduce
Note, I am using left click in my example, but this bug happens for all buttons.

  1. Activate left click
  2. Set spamming to true
  3. Set speed to 1.

Expected behavior
The mod should click the button every tick

What actually happens
The mod does one click, and then nothing after that

Minecraft Enviorment

  • Minecraft Version: [1.21]
  • Mod Version: [21.0.2]
commented

The issue seems to be caused by the fact that the timeout is always 0... it's not resetting to 1.

commented

Ok, it is resetting to one, but since there's akey.decreaseTimeout() just below that, it winds up back at 0 for the next iteration.