Merge remote-tracking branch 'origin/feature/master' into feature/master

This commit is contained in:
Bella 2020-03-24 11:01:48 -04:00
commit ef70e7a201
No known key found for this signature in database
GPG Key ID: 815562EA23BFE344
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import net.minecraft.util.FoodStats;
* Created by 086 on 8/04/2018. * Created by 086 on 8/04/2018.
* Updated by polymer on 09/03/20 * Updated by polymer on 09/03/20
* Updated by S-B99 on 20/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) @Module.Info(name = "AutoEat", description = "Automatically eat when hungry", category = Module.Category.PLAYER)
public class AutoEat extends Module { public class AutoEat extends Module {
@ -30,6 +31,7 @@ public class AutoEat extends Module {
private boolean passItemCheck(Item item) { private boolean passItemCheck(Item item) {
if (item == Items.ROTTEN_FLESH) return false; if (item == Items.ROTTEN_FLESH) return false;
if (item == Items.SPIDER_EYE) 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; if (item == Items.FISH && new ItemStack(Items.FISH).getItemDamage() == 3) return false;
return true; return true;
} }