AdvancedXRay / Auto-Clicker

Quick and dirty Auto Clicker mod for Fabric(mc)
https://www.curseforge.com/minecraft/mc-mods/auto-clicker-fabric
MIT License
39 stars 25 forks source link

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

Closed AdyTech99 closed 3 months ago

AdyTech99 commented 3 months ago

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

AdyTech99 commented 3 months ago

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

AdyTech99 commented 3 months ago

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.