Occasionally after reforging an enchanted item, other held previously reforged items can have the Name NBT data spammed with extra shit, which on it's own isn't a problem, but if said item is then used for an event which would broadcast to chat/console (e.g. player killed player with [buggeditem]) the server will crash when attempting to read the trash data.
To Reproduce
Spawn in two enchanted weapons /minecraft:give @p netherite_sword{Enchantments:[{id:looting,lvl:3},{id:mending,lvl:1},{id:sharpness,lvl:5},{id:sweeping,lvl:3}]} 2
Reforge Item 1,
Reforge Item 2,
Check NBT data of both items.
If no extra data has appeared on either item between display: {Lore: []}}, Count: 1b} in the NBT Data continue to reforge either/both items.
When {Name: '{"italic":false,"extra":[{"italic":false,"extra":[{"translate":"item.minecraft.netherite_sword"}],"text":""}],"text":""}', appears between display: and {Lore: []}} the bug has been encountered
Expected behavior
No extra junk data to ever be added to the Name NBT data.
Screenshots
Log from Game output as I was attempting to find the cause of the junk data.
Occasionally after reforging an enchanted item, other held previously reforged items can have the Name NBT data spammed with extra shit, which on it's own isn't a problem, but if said item is then used for an event which would broadcast to chat/console (e.g. player killed player with [buggeditem]) the server will crash when attempting to read the trash data.
To Reproduce
/minecraft:give @p netherite_sword{Enchantments:[{id:looting,lvl:3},{id:mending,lvl:1},{id:sharpness,lvl:5},{id:sweeping,lvl:3}]} 2
display: {Lore: []}}, Count: 1b}
in the NBT Data continue to reforge either/both items.{Name: '{"italic":false,"extra":[{"italic":false,"extra":[{"translate":"item.minecraft.netherite_sword"}],"text":""}],"text":""}',
appears betweendisplay:
and{Lore: []}}
the bug has been encounteredExpected behavior No extra junk data to ever be added to the Name NBT data.
Screenshots
Log from Game output as I was attempting to find the cause of the junk data.
Screenshot of log with annotation
Server Information (please complete the following information):
Version:
Current: git-Purpur-1718 (MC: 1.19)* Previous: git-Purpur-1699 (MC: 1.19)
You are 1 version(s) behind Download the new version at: https://purpurmc.org/downloads
Version of plugin and eco (
/ver eco
,/ver <plugin>
) eco version 6.37.3 Reforges version 5.25.2Additional context Reported on discord when first discovered and advised to open report here.