diff --git a/Client/src/main/java/com/baseband/client/module/world/AutoEat.java b/Client/src/main/java/com/baseband/client/module/world/AutoEat.java index d88481a..85f4c26 100644 --- a/Client/src/main/java/com/baseband/client/module/world/AutoEat.java +++ b/Client/src/main/java/com/baseband/client/module/world/AutoEat.java @@ -66,7 +66,8 @@ public class AutoEat extends Feature { private boolean isValid(ItemStack stack, int food) { - return stack.getItem() instanceof ItemFood + return mc.currentScreen != null && //fix + stack.getItem() instanceof ItemFood && !(stack.getItem() instanceof ItemChorusFruit) && ((20 - food)>=((ItemFood) stack.getItem()).getHealAmount(stack) || (stack.getItem() instanceof ItemAppleGold && mc.player.getHealth() < 19D)