From d9e61fb588ef38a1f650f4b84673e1f6b808100f Mon Sep 17 00:00:00 2001 From: An-En Date: Tue, 24 Mar 2020 06:29:44 -0700 Subject: [PATCH] Autoeat no longer eats poisonous potatoes (#593) --- .../me/zeroeightsix/kami/module/modules/player/AutoEat.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/player/AutoEat.java b/src/main/java/me/zeroeightsix/kami/module/modules/player/AutoEat.java index 5436f8cf..ca7f1a78 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/player/AutoEat.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/player/AutoEat.java @@ -15,6 +15,7 @@ import net.minecraft.util.FoodStats; * Created by 086 on 8/04/2018. * Updated by polymer on 09/03/20 * Updated by S-B99 on 20/03/20 + * Updated by An-En on 24/03/20 */ @Module.Info(name = "AutoEat", description = "Automatically eat when hungry", category = Module.Category.PLAYER) public class AutoEat extends Module { @@ -30,6 +31,7 @@ public class AutoEat extends Module { private boolean passItemCheck(Item item) { if (item == Items.ROTTEN_FLESH) return false; if (item == Items.SPIDER_EYE) return false; + if (item == Items.POISONOUS_POTATO) return false; if (item == Items.FISH && new ItemStack(Items.FISH).getItemDamage() == 3) return false; return true; }