From 8f94c62e87c754c33e2bd2d49d9ab24d9e9d16ac Mon Sep 17 00:00:00 2001 From: sylvessa <225480449+sylvessa@users.noreply.github.com> Date: Sun, 22 Mar 2026 18:25:26 -0500 Subject: [PATCH] allow displaying item lore --- Minecraft.World/ItemInstance.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Minecraft.World/ItemInstance.cpp b/Minecraft.World/ItemInstance.cpp index 4906c22e64..b4f9b2adad 100644 --- a/Minecraft.World/ItemInstance.cpp +++ b/Minecraft.World/ItemInstance.cpp @@ -615,7 +615,7 @@ vector *ItemInstance::getHoverText(shared_ptr player, bool a if (tag->contains(L"display")) { - //CompoundTag *display = tag->getCompound(L"display"); + CompoundTag *display = tag->getCompound(L"display"); //if (display->contains(L"color")) //{ @@ -631,8 +631,7 @@ vector *ItemInstance::getHoverText(shared_ptr player, bool a // } //} - // 4J: Lore isn't in use in game - /*if (display->contains(L"Lore")) + if (display->contains(L"Lore")) { ListTag *lore = (ListTag *) display->getList(L"Lore"); if (lore->size() > 0) @@ -643,7 +642,7 @@ vector *ItemInstance::getHoverText(shared_ptr player, bool a lines->push_back(lore->get(i)->data); } } - }*/ + } } }