mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-09 00:33:00 +00:00
fix custom recipe names not working (#129)
This commit is contained in:
parent
012ada2e88
commit
60aba187a7
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue