meteor-client
meteor-client copied to clipboard
fix: AutoEat not switching slots when food runs out
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
onTickthat checks if the current slot contains food - refactor method onTick to remove nesting
bug demo:
Related issues
#4836
How Has This Been Tested?
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.