Skip to content

Commit

Permalink
fixed autoeat not working when using shield/offhand items
Browse files Browse the repository at this point in the history
  • Loading branch information
Seaturtle111501 committed Nov 18, 2023
1 parent 9af9822 commit 8cb5908
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ private void onTick(TickEvent.Pre event) {
// Skip if Auto Gap is already eating
if (Modules.get().get(AutoGap.class).isEating()) return;

if (mc.options.useKey.isPressed()) return;

if (eating) {
// If we are eating check if we should still be still eating
if (shouldEat()) {
Expand Down Expand Up @@ -188,6 +190,7 @@ private void startEating() {
private void eat() {
changeSlot(slot);
setPressed(true);
if(eating == false) setPressed(false);
if (!mc.player.isUsingItem()) Utils.rightClick();

eating = true;
Expand Down

0 comments on commit 8cb5908

Please sign in to comment.