dumb fuck code
This commit is contained in:
parent
ed608a5565
commit
39481bd9c4
1 changed files with 6 additions and 2 deletions
|
@ -75,11 +75,15 @@ public class AutoEat extends Feature {
|
|||
|
||||
|
||||
private boolean isValid(ItemStack stack, int currentHunger) {
|
||||
return mc.currentScreen != null && //fix
|
||||
//DUMFAYCE
|
||||
//你为什么用谷歌翻译这个
|
||||
//get outta my face!
|
||||
//you know you didn't!
|
||||
return mc.currentScreen == null && //re- dumbfuck code, this used to be != null
|
||||
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) //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