From ee647daf4db2fe2368960212337c074de7da6e15 Mon Sep 17 00:00:00 2001 From: Radiane Date: Wed, 10 Sep 2025 13:35:45 +0200 Subject: [PATCH 1/5] Update AutoEat.java Also pause Nuker, InfinityMiner and AutoFish --- .../systems/modules/player/AutoEat.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java index 26dec3ad27..f0cf8c54dd 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java @@ -16,6 +16,9 @@ import meteordevelopment.meteorclient.systems.modules.combat.BedAura; import meteordevelopment.meteorclient.systems.modules.combat.CrystalAura; import meteordevelopment.meteorclient.systems.modules.combat.KillAura; +import meteordevelopment.meteorclient.systems.modules.world.Nuker; +import meteordevelopment.meteorclient.systems.modules.world.InfinityMiner; +import meteordevelopment.meteorclient.systems.modules.player.AutoFish; import meteordevelopment.meteorclient.utils.Utils; import meteordevelopment.meteorclient.utils.player.InvUtils; import meteordevelopment.meteorclient.utils.player.SlotUtils; @@ -32,7 +35,7 @@ public class AutoEat extends Module { @SuppressWarnings("unchecked") - private static final Class[] AURAS = new Class[]{ KillAura.class, CrystalAura.class, AnchorAura.class, BedAura.class }; + private static final Class[] MODULELIST = new Class[]{KillAura.class, CrystalAura.class, AnchorAura.class, BedAura.class, Nuker.class, InfinityMiner.class, AutoFish.class}; // Settings groups private final SettingGroup sgGeneral = settings.getDefaultGroup(); @@ -57,9 +60,9 @@ public class AutoEat extends Module { .build() ); - private final Setting pauseAuras = sgGeneral.add(new BoolSetting.Builder() - .name("pause-auras") - .description("Pauses all auras when eating.") + private final Setting pauseModules = sgGeneral.add(new BoolSetting.Builder() + .name("pause-modules") + .description("Pauses all Auras, Nuker, InfinityMiner and AutoFish when eating.") .defaultValue(true) .build() ); @@ -166,8 +169,8 @@ private void startEating() { // Pause auras wasAura.clear(); - if (pauseAuras.get()) { - for (Class klass : AURAS) { + if (pauseModules.get()) { + for (Class klass : MODULELIST) { Module module = Modules.get().get(klass); if (module.isActive()) { @@ -199,8 +202,8 @@ private void stopEating() { eating = false; // Resume auras - if (pauseAuras.get()) { - for (Class klass : AURAS) { + if (pauseModules.get()) { + for (Class klass : MODULELIST) { Module module = Modules.get().get(klass); if (wasAura.contains(klass) && !module.isActive()) { From b975c236156ba6e77bfa2fcf3a05e69c572ef23c Mon Sep 17 00:00:00 2001 From: Radiane Date: Wed, 10 Sep 2025 11:41:38 +0000 Subject: [PATCH 2/5] better description --- .../meteorclient/systems/modules/player/AutoEat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java index f0cf8c54dd..513f974698 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java @@ -62,7 +62,7 @@ public class AutoEat extends Module { private final Setting pauseModules = sgGeneral.add(new BoolSetting.Builder() .name("pause-modules") - .description("Pauses all Auras, Nuker, InfinityMiner and AutoFish when eating.") + .description("Pauses Auras, Nuker, InfinityMiner and AutoFish when eating.") .defaultValue(true) .build() ); From ca3f34dc42baabc17fc5dcfad93d77aca3fdd152 Mon Sep 17 00:00:00 2001 From: Radiane Date: Mon, 15 Sep 2025 22:06:41 +0000 Subject: [PATCH 3/5] AutoEat actually pause baritone --- .../systems/modules/player/AutoEat.java | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java index 513f974698..5431977b64 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java @@ -35,7 +35,9 @@ public class AutoEat extends Module { @SuppressWarnings("unchecked") - private static final Class[] MODULELIST = new Class[]{KillAura.class, CrystalAura.class, AnchorAura.class, BedAura.class, Nuker.class, InfinityMiner.class, AutoFish.class}; + private static final Class[] MODULELIST = new Class[] { + KillAura.class, CrystalAura.class, AnchorAura.class, BedAura.class, Nuker.class, InfinityMiner.class, AutoFish.class + }; // Settings groups private final SettingGroup sgGeneral = settings.getDefaultGroup(); @@ -167,7 +169,6 @@ private void startEating() { prevSlot = mc.player.getInventory().getSelectedSlot(); eat(); - // Pause auras wasAura.clear(); if (pauseModules.get()) { for (Class klass : MODULELIST) { @@ -181,9 +182,11 @@ private void startEating() { } // Pause baritone - if (pauseBaritone.get() && PathManagers.get().isPathing() && !wasBaritone) { - wasBaritone = true; - PathManagers.get().pause(); + if (pauseBaritone.get()) { + if (PathManagers.get().isPathing()) { + wasBaritone = true; + PathManagers.get().pause(); + } } } @@ -214,8 +217,8 @@ private void stopEating() { // Resume baritone if (pauseBaritone.get() && wasBaritone) { - wasBaritone = false; PathManagers.get().resume(); + wasBaritone = false; } } @@ -237,8 +240,8 @@ public boolean shouldEat() { FoodComponent food = mc.player.getInventory().getStack(slot).get(DataComponentTypes.FOOD); if (food == null) return false; - return thresholdMode.get().test(healthLow, hungerLow) - && (mc.player.getHungerManager().isNotFull() || food.canAlwaysEat()); + return thresholdMode.get().test(healthLow, hungerLow) && + (mc.player.getHungerManager().isNotFull() || food.canAlwaysEat()); } private int findSlot() { @@ -274,9 +277,9 @@ private int findSlot() { public enum ThresholdMode { Health((health, hunger) -> health), - Hunger((health, hunger) -> hunger), - Any((health, hunger) -> health || hunger), - Both((health, hunger) -> health && hunger); + Hunger((health, hunger) -> hunger), + Any((health, hunger) -> health || hunger), + Both((health, hunger) -> health && hunger); private final BiPredicate predicate; @@ -288,4 +291,4 @@ public boolean test(boolean health, boolean hunger) { return predicate.test(health, hunger); } } -} +} \ No newline at end of file From fd5bcd36330ce77970f75122049894b24770df95 Mon Sep 17 00:00:00 2001 From: Radiane Date: Tue, 16 Sep 2025 00:49:15 +0200 Subject: [PATCH 4/5] Discard changes to src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java --- .../systems/modules/player/AutoEat.java | 44 ++++++++----------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java index 5431977b64..26dec3ad27 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java @@ -16,9 +16,6 @@ import meteordevelopment.meteorclient.systems.modules.combat.BedAura; import meteordevelopment.meteorclient.systems.modules.combat.CrystalAura; import meteordevelopment.meteorclient.systems.modules.combat.KillAura; -import meteordevelopment.meteorclient.systems.modules.world.Nuker; -import meteordevelopment.meteorclient.systems.modules.world.InfinityMiner; -import meteordevelopment.meteorclient.systems.modules.player.AutoFish; import meteordevelopment.meteorclient.utils.Utils; import meteordevelopment.meteorclient.utils.player.InvUtils; import meteordevelopment.meteorclient.utils.player.SlotUtils; @@ -35,9 +32,7 @@ public class AutoEat extends Module { @SuppressWarnings("unchecked") - private static final Class[] MODULELIST = new Class[] { - KillAura.class, CrystalAura.class, AnchorAura.class, BedAura.class, Nuker.class, InfinityMiner.class, AutoFish.class - }; + private static final Class[] AURAS = new Class[]{ KillAura.class, CrystalAura.class, AnchorAura.class, BedAura.class }; // Settings groups private final SettingGroup sgGeneral = settings.getDefaultGroup(); @@ -62,9 +57,9 @@ public class AutoEat extends Module { .build() ); - private final Setting pauseModules = sgGeneral.add(new BoolSetting.Builder() - .name("pause-modules") - .description("Pauses Auras, Nuker, InfinityMiner and AutoFish when eating.") + private final Setting pauseAuras = sgGeneral.add(new BoolSetting.Builder() + .name("pause-auras") + .description("Pauses all auras when eating.") .defaultValue(true) .build() ); @@ -169,9 +164,10 @@ private void startEating() { prevSlot = mc.player.getInventory().getSelectedSlot(); eat(); + // Pause auras wasAura.clear(); - if (pauseModules.get()) { - for (Class klass : MODULELIST) { + if (pauseAuras.get()) { + for (Class klass : AURAS) { Module module = Modules.get().get(klass); if (module.isActive()) { @@ -182,11 +178,9 @@ private void startEating() { } // Pause baritone - if (pauseBaritone.get()) { - if (PathManagers.get().isPathing()) { - wasBaritone = true; - PathManagers.get().pause(); - } + if (pauseBaritone.get() && PathManagers.get().isPathing() && !wasBaritone) { + wasBaritone = true; + PathManagers.get().pause(); } } @@ -205,8 +199,8 @@ private void stopEating() { eating = false; // Resume auras - if (pauseModules.get()) { - for (Class klass : MODULELIST) { + if (pauseAuras.get()) { + for (Class klass : AURAS) { Module module = Modules.get().get(klass); if (wasAura.contains(klass) && !module.isActive()) { @@ -217,8 +211,8 @@ private void stopEating() { // Resume baritone if (pauseBaritone.get() && wasBaritone) { - PathManagers.get().resume(); wasBaritone = false; + PathManagers.get().resume(); } } @@ -240,8 +234,8 @@ public boolean shouldEat() { FoodComponent food = mc.player.getInventory().getStack(slot).get(DataComponentTypes.FOOD); if (food == null) return false; - return thresholdMode.get().test(healthLow, hungerLow) && - (mc.player.getHungerManager().isNotFull() || food.canAlwaysEat()); + return thresholdMode.get().test(healthLow, hungerLow) + && (mc.player.getHungerManager().isNotFull() || food.canAlwaysEat()); } private int findSlot() { @@ -277,9 +271,9 @@ private int findSlot() { public enum ThresholdMode { Health((health, hunger) -> health), - Hunger((health, hunger) -> hunger), - Any((health, hunger) -> health || hunger), - Both((health, hunger) -> health && hunger); + Hunger((health, hunger) -> hunger), + Any((health, hunger) -> health || hunger), + Both((health, hunger) -> health && hunger); private final BiPredicate predicate; @@ -291,4 +285,4 @@ public boolean test(boolean health, boolean hunger) { return predicate.test(health, hunger); } } -} \ No newline at end of file +} From ea41254e63c22d3233b0ddc0368d1c86f78a0a75 Mon Sep 17 00:00:00 2001 From: Radiane Date: Tue, 16 Sep 2025 00:53:57 +0200 Subject: [PATCH 5/5] github wtf is this --- .../systems/modules/player/AutoEat.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java index 26dec3ad27..513f974698 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java @@ -16,6 +16,9 @@ import meteordevelopment.meteorclient.systems.modules.combat.BedAura; import meteordevelopment.meteorclient.systems.modules.combat.CrystalAura; import meteordevelopment.meteorclient.systems.modules.combat.KillAura; +import meteordevelopment.meteorclient.systems.modules.world.Nuker; +import meteordevelopment.meteorclient.systems.modules.world.InfinityMiner; +import meteordevelopment.meteorclient.systems.modules.player.AutoFish; import meteordevelopment.meteorclient.utils.Utils; import meteordevelopment.meteorclient.utils.player.InvUtils; import meteordevelopment.meteorclient.utils.player.SlotUtils; @@ -32,7 +35,7 @@ public class AutoEat extends Module { @SuppressWarnings("unchecked") - private static final Class[] AURAS = new Class[]{ KillAura.class, CrystalAura.class, AnchorAura.class, BedAura.class }; + private static final Class[] MODULELIST = new Class[]{KillAura.class, CrystalAura.class, AnchorAura.class, BedAura.class, Nuker.class, InfinityMiner.class, AutoFish.class}; // Settings groups private final SettingGroup sgGeneral = settings.getDefaultGroup(); @@ -57,9 +60,9 @@ public class AutoEat extends Module { .build() ); - private final Setting pauseAuras = sgGeneral.add(new BoolSetting.Builder() - .name("pause-auras") - .description("Pauses all auras when eating.") + private final Setting pauseModules = sgGeneral.add(new BoolSetting.Builder() + .name("pause-modules") + .description("Pauses Auras, Nuker, InfinityMiner and AutoFish when eating.") .defaultValue(true) .build() ); @@ -166,8 +169,8 @@ private void startEating() { // Pause auras wasAura.clear(); - if (pauseAuras.get()) { - for (Class klass : AURAS) { + if (pauseModules.get()) { + for (Class klass : MODULELIST) { Module module = Modules.get().get(klass); if (module.isActive()) { @@ -199,8 +202,8 @@ private void stopEating() { eating = false; // Resume auras - if (pauseAuras.get()) { - for (Class klass : AURAS) { + if (pauseModules.get()) { + for (Class klass : MODULELIST) { Module module = Modules.get().get(klass); if (wasAura.contains(klass) && !module.isActive()) {