more autoeat fixes
This commit is contained in:
parent
da15aaaa96
commit
d97e664ed7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue