Error in the description of custom enchants

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

anlear

New member
Sep 4, 2024
3
0
1
Russian Federation
Hello, I'm trying to write the plugin, that will add some custom enchantments.
Here is my code: https://github.com/AnleaR/CustomEnchants

I'm catching one mistake that I haven't been able to fix for 3 days. The error is that when adding custom enchantment to item, an empty line is created in the item lore. The more custom enchantments I have on an item, the more empty lines there are.
Example:
I've tried 2 ways of solving this problem:
1) Setting lore
2) Using resource pack to fill translation key

All of them doesn't help me. Maybe you can find the reason for this error.
Thank you in advance for your help!
 
Version Output
Current: git-Purpur-1985 (MC: 1.19.4)*