Skip to content

Conversation

@zyrafaq
Copy link

@zyrafaq zyrafaq commented Jan 21, 2026

AutoMend custom disable message if nothing to mend

  • Bug fix
  • New feature

Description

Added a custom disable message if nothing to mend.

Related issues

Not applicable

How Has This Been Tested?

Tested locally.

Checklist:

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

Comment on lines 106 to 117
if (blacklistArmorWearableItems.get()) {
int[] armorSlots = {36, 37, 38, 39};
boolean isArmor = false;

for (int slot : armorSlots) {
if (itemStack.getItem() == mc.player.getInventory().getStack(slot).getItem()) {
isArmor = true;
break;
}
}
if (isArmor) continue;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Auto Mend was already skipping worn armour (#getMainStacks returns 0-35 slots) and now with your patch, it just skips item types of worn armours on auto mend (if you wear a diamond chestplate and has a diamond chestplate with mending in your inventory, it will skip the chestplate in your inventory).

Is this what you wanted to achieve? If it's the case, why don't you add armours to blacklist option?

@zyrafaq zyrafaq changed the title AutoMend update AutoMend custom disable message if nothing to mend Jan 23, 2026
@zyrafaq zyrafaq closed this Jan 23, 2026
@zyrafaq zyrafaq reopened this Jan 23, 2026
@zyrafaq zyrafaq closed this Jan 23, 2026
@zyrafaq zyrafaq reopened this Jan 23, 2026
@zyrafaq zyrafaq closed this Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants