more autoeat fixes

This commit is contained in:
Jess H 2024-05-28 05:18:20 +01:00
parent da15aaaa96
commit d97e664ed7

View file

@ -83,7 +83,7 @@ public class AutoEat extends Feature {
stack.getItem() instanceof ItemFood //it has to be food bruh
&& !(stack.getItem() instanceof ItemChorusFruit) //not a chorus fruit you ret-.... dumbfuck
&& ((20 - currentHunger) >= ((ItemFood) stack.getItem()).getHealAmount(stack) //if hunger low and food wanted refills the amount left
|| (stack.getItem() instanceof ItemAppleGold && mc.player.getHealth() < 19D && mc.player.getActivePotionEffect(MobEffects.REGENERATION) == null || mc.player.getActivePotionEffect(MobEffects.ABSORPTION) == null) //is golden apple and our health is less than 19 and we don't have regen
|| (stack.getItem() instanceof ItemAppleGold && mc.player.getHealth() < 19D && (mc.player.getActivePotionEffect(MobEffects.REGENERATION) == null || mc.player.getActivePotionEffect(MobEffects.ABSORPTION) == null)) //is golden apple and our health is less than 19 and we don't have regen
|| (stack.getItem() instanceof ItemAppleGold && mc.player.getActivePotionEffect(MobEffects.FIRE_RESISTANCE) == null) && mc.player.isBurning()); //is golden apple and we don't have fire res and we're burning
}
}