[SPIGOT-4156] Serialized items with damage values and meta do not migrate to 1.13 Created: 25/Jul/18  Updated: 26/Jul/18  Resolved: 25/Jul/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Nathan Wolf Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.13, item, serialization
Environment:

Linux, Mac OS


Attachments: File fixed.yml     File nomigrate.yml    
Version: git-Spigot-0b44fa0-9646d8d
Guidelines Read: Yes

 Description   

I have some serialized items packaged with my plugin in .yml files. They have a damage specified as well as meta for display name and lore.

The damage value does not get read when deserializing in 1.13, causing the item to come back undamaged.

The attached nomigrate.yml file demonstrates the problem if the it is loaded into a ConfigurationSection and getItemStack("item") is used to retrieve the serialized item.

The fixed.yml file shows a fixed version where I manually added a Damage tag in the meta section. This one works correctly.



 Comments   
Comment by Nathan Wolf [ 26/Jul/18 ]

Thank you, this resolved my issue- tested in 

git-Spigot-0b44fa0-1ef1ffd

Generated at Tue Apr 22 06:21:08 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.