From 449500f5c2c7e58d65c9ca41b8591081145cb533 Mon Sep 17 00:00:00 2001 From: Eccys <73040912+Eccys@users.noreply.github.com> Date: Sat, 22 Aug 2026 17:38:45 +0000 Subject: [PATCH] feat(AutoEat): add pause-autofish setting --- .../systems/modules/player/AutoEat.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) 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 1ebed5813aa..ff7cad7edab 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/player/AutoEat.java @@ -73,6 +73,13 @@ public class AutoEat extends Module { .build() ); + private final Setting pauseAutoFish = sgGeneral.add(new BoolSetting.Builder() + .name("pause-autofish") + .description("Pause AutoFish when eating.") + .defaultValue(true) + .build() + ); + private final Setting searchInventory = sgGeneral.add(new BoolSetting.Builder() .name("search-inventory") .description("Search the full inventory for food, not only the hotbar.") @@ -121,6 +128,7 @@ public class AutoEat extends Module { private final List> wasAura = new ReferenceArrayList<>(); private boolean wasBaritone = false; + private boolean wasAutoFish = false; public AutoEat() { super(Categories.Player, "auto-eat", "Automatically eats food."); @@ -200,6 +208,15 @@ private void startEating() { wasBaritone = true; PathManagers.get().pause(); } + + // Pause autofish + if (pauseAutoFish.get()) { + Module autoFish = Modules.get().get(AutoFish.class); + if (autoFish != null && autoFish.isActive()) { + wasAutoFish = true; + autoFish.toggle(); + } + } } private void eat() { @@ -230,6 +247,15 @@ private void stopEating() { wasBaritone = false; PathManagers.get().resume(); } + + // Resume autofish + if (pauseAutoFish.get() && wasAutoFish) { + wasAutoFish = false; + Module autoFish = Modules.get().get(AutoFish.class); + if (autoFish != null) { + autoFish.enable(); + } + } } private void setPressed(boolean pressed) {