diff options
| author | Sylvessa <225480449+sylvessa@users.noreply.github.com> | 2026-03-22 20:50:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-22 20:50:06 -0500 |
| commit | c1ce97f7be1fc78c2e7cf9e9cb0627aa5b4e8629 (patch) | |
| tree | 6d4b65260154ec6753d596ce77f42743376cfeaf | |
| parent | 603c6ba7cb97b2f3e79a8f9eaa6f148db6a03ed3 (diff) | |
allow displaying item lore (#1384)
| -rw-r--r-- | Minecraft.World/ItemInstance.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Minecraft.World/ItemInstance.cpp b/Minecraft.World/ItemInstance.cpp index 4906c22e..b4f9b2ad 100644 --- a/Minecraft.World/ItemInstance.cpp +++ b/Minecraft.World/ItemInstance.cpp @@ -615,7 +615,7 @@ vector<HtmlString> *ItemInstance::getHoverText(shared_ptr<Player> 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<HtmlString> *ItemInstance::getHoverText(shared_ptr<Player> player, bool a // } //} - // 4J: Lore isn't in use in game - /*if (display->contains(L"Lore")) + if (display->contains(L"Lore")) { ListTag<StringTag> *lore = (ListTag<StringTag> *) display->getList(L"Lore"); if (lore->size() > 0) @@ -643,7 +642,7 @@ vector<HtmlString> *ItemInstance::getHoverText(shared_ptr<Player> player, bool a lines->push_back(lore->get(i)->data); } } - }*/ + } } } |
