mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-07-17 19:40:45 +00:00
fix custom recipe names not working (#129)
This commit is contained in:
@@ -916,7 +916,7 @@ void IUIScene_CraftingMenu::UpdateHighlight()
|
||||
|
||||
// special case for the torch coal/charcoal
|
||||
int id=pTempItemInstAdditional->getDescriptionId();
|
||||
LPCWSTR itemstring;
|
||||
wstring itemstring;
|
||||
|
||||
switch(id)
|
||||
{
|
||||
@@ -945,11 +945,15 @@ void IUIScene_CraftingMenu::UpdateHighlight()
|
||||
}
|
||||
break;
|
||||
default:
|
||||
itemstring=app.GetString(id );
|
||||
if (pTempItemInstAdditional->hasCustomHoverName()) {
|
||||
itemstring = pTempItemInstAdditional->getHoverName();
|
||||
} else {
|
||||
itemstring = app.GetString(id);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
setItemText(itemstring);
|
||||
setItemText(itemstring.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user