Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
Split up right and left clicker
Browse files Browse the repository at this point in the history
  • Loading branch information
Kopamed committed Jun 7, 2022
1 parent 9c962ac commit 6f2e790
Show file tree
Hide file tree
Showing 13 changed files with 775 additions and 640 deletions.
Binary file modified build/libs/[1.8.9] BetterKeystrokes V-1.2.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions src/main/java/keystrokesmod/client/config/ConfigManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public void setConfig(Config config){
module.applyConfigFromJson(
data.get(module.getName()).getAsJsonObject()
);
} else {
module.resetToDefaults();
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/keystrokesmod/client/module/ModuleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public class ModuleManager {
public ModuleManager() {
if (initialized) return;

addModule(new AutoClicker());
addModule(new LeftClicker());
addModule(new RightClicker());
addModule(new AimAssist());
addModule(new BurstClicker());
addModule(new ClickAssist());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import keystrokesmod.client.main.Raven;
import keystrokesmod.client.module.Module;
import keystrokesmod.client.module.ModuleManager;
import keystrokesmod.client.module.setting.impl.SliderSetting;
import keystrokesmod.client.module.setting.impl.TickSetting;
import keystrokesmod.client.module.modules.world.AntiBot;
Expand Down Expand Up @@ -68,7 +67,7 @@ public void update() {

if (!weaponOnly.isToggled() || Utils.Player.isPlayerHoldingWeapon()) {

Module autoClicker = Raven.moduleManager.getModuleByClazz(AutoClicker.class);
Module autoClicker = Raven.moduleManager.getModuleByClazz(RightClicker.class);
//what if player clicking but mouse not down ????
if ((clickAim.isToggled() && Utils.Client.autoClickerClicking()) || (Mouse.isButtonDown(0) && autoClicker != null && !autoClicker.isEnabled()) || !clickAim.isToggled()) {
Entity en = this.getEnemy();
Expand Down
Loading

0 comments on commit 6f2e790

Please sign in to comment.