Skip to content

Commit babbd40

Browse files
authored
Add "Only on ground" setting to AutoEXP module (#5856)
1 parent 37a0e72 commit babbd40

File tree

1 file changed

+11
-0
lines changed
  • src/main/java/meteordevelopment/meteorclient/systems/modules/combat

1 file changed

+11
-0
lines changed

src/main/java/meteordevelopment/meteorclient/systems/modules/combat/AutoEXP.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ public class AutoEXP extends Module {
3939
.build()
4040
);
4141

42+
private final Setting<Boolean> onlyGround = sgGeneral.add(new BoolSetting.Builder()
43+
.name("only-on-ground")
44+
.description("Only throw when the player is on the ground.")
45+
.defaultValue(false)
46+
.build()
47+
);
48+
4249
private final Setting<Integer> slot = sgGeneral.add(new IntSetting.Builder()
4350
.name("exp-slot")
4451
.description("The slot to replenish exp into.")
@@ -80,6 +87,10 @@ public void onActivate() {
8087

8188
@EventHandler
8289
private void onTick(TickEvent.Pre event) {
90+
if (onlyGround.get() && !mc.player.isOnGround()) {
91+
return;
92+
}
93+
8394
if (repairingI == -1) {
8495
if (mode.get() != Mode.Hands) {
8596
for (EquipmentSlot slot : AttributeModifierSlot.ARMOR) {

0 commit comments

Comments
 (0)