meteor-client icon indicating copy to clipboard operation
meteor-client copied to clipboard

fix: AutoEat not switching slots when food runs out

Open uxmlen opened this issue 5 months ago • 2 comments

Type of change

  • [x] Bug fix
  • [ ] New feature

Description

Fixed condition that checks for food in current slot to allow switching when food is depleted.

When using AutoEat, if the food in the current slot runs out, the module fails to switch to another slot with food. The player gets stuck with the empty slot until another food item appears in that same slot.

  • Fixed the condition in onTick that checks if the current slot contains food
  • refactor method onTick to remove nesting

bug demo: 2025-05-05 14-30-34

Related issues

#4836

How Has This Been Tested?

2025-05-05 14-58-40

you can see in the gif that the slots can be switched after applying this patch

Checklist:

  • [x] My code follows the style guidelines of this project.
  • [x] I have added comments to my code in more complex areas.
  • [x] I have tested the code in both development and production environments.

uxmlen avatar May 05 '25 12:05 uxmlen