AutoEat no longer interacts with blocks

This commit is contained in:
Dewy REDACTED 2020-04-10 22:10:28 +01:00
parent afa77279f8
commit 78211f2128
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ public class AutoEat extends Module {
mc.player.setActiveHand(EnumHand.OFF_HAND);
eating = true;
KeyBinding.setKeyBindState(mc.gameSettings.keyBindUseItem.getKeyCode(), true);
mc.rightClickMouse();
mc.playerController.processRightClick(mc.player, mc.world, EnumHand.OFF_HAND);
} else {
for (int i = 0; i < 9; i++) {
if (isValid(mc.player.inventory.getStackInSlot(i), stats.getFoodLevel())) {
@ -62,7 +62,7 @@ public class AutoEat extends Module {
mc.player.inventory.currentItem = i;
eating = true;
KeyBinding.setKeyBindState(mc.gameSettings.keyBindUseItem.getKeyCode(), true);
mc.rightClickMouse();
mc.playerController.processRightClick(mc.player, mc.world, EnumHand.MAIN_HAND);
return;
}
}