ComponentPreset inventory to json

This commit is contained in:
dordsor21
2020-08-07 13:22:10 +01:00
parent 6012705e95
commit 7f29b5d1e8
3 changed files with 14 additions and 12 deletions

View File

@ -96,7 +96,7 @@ import java.util.stream.IntStream;
}
List<String> lore = new ArrayList<>();
for (String entry : item.lore) {
lore.add(ChatColor.translateAlternateColorCodes('&', entry));
lore.add(BukkitUtil.LEGACY_COMPONENT_SERIALIZER.serialize(BukkitUtil.MINI_MESSAGE.deserialize(entry)));
}
meta.setLore(lore);
}