Universal Enchants

Universal Enchants

2M Downloads

[Bug]: Universal Enchants causes duplicate entries in item tooltips

wild-iron opened this issue ยท 4 comments

commented

Mod Loader (Required)

Fabric

Minecraft Version(s) (Required)

1.21.1

Mod Version(s) (Required)

21.1.4

Minimal Setup (Required)

Yes

Notes (Required)

Current behaviour: Tooltips of enchanted items sometimes show duplicate lines, such as

Steps to reproduce:
1: Enchant, e.g., a diamond chestplate with Fire Protection IV
2: Check the tooltip

Duplicate entries look like having entries for both "When worn:" and "When equipped:", listing the same information under each.

Expected behaviour: only one set of info ("When worn:") should remain.

latest.log (Required)

https://gist.github.com/wild-iron/a88ae18751c512467bb73727e64b56cc

commented

Please include a screenshot.

commented

Please include a screenshot.

Sure, here you go:
Image

commented

If it helps, for comparison/proof, this is the same item tooltip viewed in the same version, with no mods enabled.

Image

commented

Thank you! That is caused by armor enchantments now also working for animal armor, which makes them compatible with the body slot used by animals, and the tooltip is created for every compatible slot.