Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 04:50:06 +01:00
SPIGOT-4935: Lore deserializes incorrectly from previous versions
Dieser Commit ist enthalten in:
Ursprung
dd99c5bb44
Commit
f690957311
@ -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()) {
|
if (list == null || list.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
NBTTagList tagList = new NBTTagList();
|
NBTTagList tagList = new NBTTagList();
|
||||||
for (IChatBaseComponent value : list) {
|
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;
|
return tagList;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren