Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
AutoEat no longer interacts with blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
BitBuf committed Apr 10, 2020
1 parent afa7727 commit 78211f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ public void onUpdate() {
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())) {
lastSlot = mc.player.inventory.currentItem;
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;
}
}
Expand Down

1 comment on commit 78211f2

@BitBuf
Copy link
Contributor Author

@BitBuf BitBuf commented on 78211f2 Apr 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes zeroeightysix#56 in #12

Please sign in to comment.