mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
SPIGOT-4935: Lore deserializes incorrectly from previous versions
This commit is contained in:
parent
dd99c5bb44
commit
f690957311
1 changed files with 2 additions and 2 deletions
|
@ -664,14 +664,14 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
|||
}
|
||||
}
|
||||
|
||||
static NBTTagList createStringList(List<IChatBaseComponent> list) {
|
||||
NBTTagList createStringList(List<IChatBaseComponent> list) {
|
||||
if (list == null || list.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
NBTTagList tagList = new NBTTagList();
|
||||
for (IChatBaseComponent value : list) {
|
||||
tagList.add(new NBTTagString(CraftChatMessage.toJSON(value)));
|
||||
tagList.add(new NBTTagString(version >= 1803 ? CraftChatMessage.toJSON(value) : CraftChatMessage.fromComponent(value, EnumChatFormat.DARK_PURPLE))); // SPIGOT-4935
|
||||
}
|
||||
|
||||
return tagList;
|
||||
|
|
Loading…
Reference in a new issue