Majrusz / MajruszLibrary

Library with common code for my Minecraft modifications.
8 stars 6 forks source link

CustomEnchantment logic terminates proper enchantability check logic flow #86

Open lcy0x1 opened 2 months ago

lcy0x1 commented 2 months ago

https://github.com/Majrusz/MajruszLibrary/blob/91912ba0325377004f421d47deec1fa0ad96e73d/common/src/main/java/com/majruszlibrary/item/CustomEnchantment.java#L41

Enchantments show allow items to override enchantability check, allowing other mod items to use your enchantments. But your custom enchantment does not allow that, causing compatibility issues.

The proper enchantability logic flow is:

Screen Shot 2024-05-06 at 10 50 10