WolfyScript / CustomCrafting

Spigot based plugin to create your own custom Recipes & Items. Designed to be easy to use with in-game GUI and tons of configuration possibilities.
https://modrinth.com/plugin/customcrafting
GNU General Public License v3.0
114 stars 36 forks source link

Empty lore line added on a item with customized durability #312

Open TheBestMines opened 1 year ago

TheBestMines commented 1 year ago

What happened?

As seen on the CustomCrafting Discord support, we've added a custom item (a piece of armor) to CustomCrafting (see screen 1), which has a custom durability (see screen 2). When obtained, the item is correct in its description (name and lores) (see screen 3). But when it loses durability (at least 1 point), a new empty lore line appears in the item description (see screen 4), which can be seen precisely in the item data (see screen 5). This is a little awkward for visibility in the graphical interface.

Screen 1 : https://cdn.discordapp.com/attachments/498358213842960394/1129120543749185649/screen_1.png Screen 2 : https://cdn.discordapp.com/attachments/498358213842960394/1129120544122482779/screen_2.png Screen 3 : https://cdn.discordapp.com/attachments/498358213842960394/1129120544629989586/screen_3.png Screen 4 : https://cdn.discordapp.com/attachments/498358213842960394/1129120545062006965/screen_4.png Screen 5 : https://cdn.discordapp.com/attachments/498358213842960394/1129120545653395577/screen_5.png

How can the bug be reproduced?

  1. Create a item with customized durability and get it ;
  2. Give it durability damage (at least 1 point) ;

Expected Behaviour?

The object should not have an empty lore line added and should remain intact in its description, even though it has been modified by the plugin.

Plugin version

CustomCrafting 4.16.8.0 (the free version), WolfyUtilities 4.16.12.0

Server software

Paper 1.19.4, Build 550

Relevant log output

No response

Submit issue