mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-23 16:58:16 +05:00
allow displaying item lore (#1384)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user