Skip to content

Commit

Permalink
NoBreakDelay -> BreakDelay
Browse files Browse the repository at this point in the history
Now you can modify the break cooldown
  • Loading branch information
hexadecimal233 committed Oct 16, 2022
1 parent 77632ea commit 9b984ce
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ private void initPlayer() {
add(new GhostHand());
add(new LiquidInteract());
add(new MiddleClickExtra());
add(new NoBreakDelay());
add(new BreakDelay());
add(new NoInteract());
add(new NoMiningTrace());
add(new NoRotate());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
* Copyright (c) Meteor Development.
*/

package meteordevelopment.meteorclient.systems.modules.player;

import meteordevelopment.meteorclient.events.entity.player.BlockBreakingCooldownEvent;
import meteordevelopment.meteorclient.settings.IntSetting;
import meteordevelopment.meteorclient.settings.Setting;
import meteordevelopment.meteorclient.settings.SettingGroup;
import meteordevelopment.meteorclient.systems.modules.Categories;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.orbit.EventHandler;

public class BreakDelay extends Module {
SettingGroup sgGeneral = settings.getDefaultGroup();

private final Setting<Integer> cooldown = sgGeneral.add(new IntSetting.Builder()
.name("cooldown")
.description("Block break cooldown in ticks.")
.defaultValue(0)
.min(0)
.sliderMax(5)
.build()
);

public BreakDelay() {
super(Categories.Player, "break-delay", "Changes the delay between breaking blocks.");
}

@EventHandler
private void onBlockBreakingCooldown(BlockBreakingCooldownEvent event) {
event.cooldown = cooldown.get();
}
}

This file was deleted.

0 comments on commit 9b984ce

Please sign in to comment.