summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/ftbsc/bscv/modules/self/FastInteract.java25
1 files changed, 3 insertions, 22 deletions
diff --git a/src/main/java/ftbsc/bscv/modules/self/FastInteract.java b/src/main/java/ftbsc/bscv/modules/self/FastInteract.java
index 52bb33a..c256e00 100644
--- a/src/main/java/ftbsc/bscv/modules/self/FastInteract.java
+++ b/src/main/java/ftbsc/bscv/modules/self/FastInteract.java
@@ -13,32 +13,13 @@ import static ftbsc.bscv.Boscovicino.log;
@AutoService(ILoadable.class)
public class FastInteract extends QuickModule implements ICommons {
- @Override
- protected int getDefaultKey() {
- return UNBOUND;
- }
-
- Field delayField;
- @Override
- protected void onEnabled() {
- try {
- delayField = MC.getClass().getDeclaredField("field_71467_ac");
- delayField.setAccessible(true);
- } catch (NoSuchFieldException e) {
- log("! failed accessing delay field");
- this.disable();
- }
- }
+ protected int getDefaultKey() { return UNBOUND; }
@SubscribeEvent
public void onTick(TickEvent.ClientTickEvent event) {
if (MC == null) return;
- try {
- this.delayField.set(MC, 0);
- } catch (IllegalAccessException e) {
- log("! failed accessing delay field");
- this.disable();
- }
+
+ MC.rightClickDelay = 0;
}
}