mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Show infotext with description for item entities
This commit is contained in:
@@ -3732,8 +3732,11 @@ void Game::handlePointingAtObject(GameRunData *runData,
|
||||
{
|
||||
infotext = utf8_to_wide(runData->selected_object->infoText());
|
||||
|
||||
if (infotext == L"" && show_debug) {
|
||||
infotext = utf8_to_wide(runData->selected_object->debugInfoText());
|
||||
if (show_debug) {
|
||||
if (infotext != L"") {
|
||||
infotext += L"\n";
|
||||
}
|
||||
infotext += utf8_to_wide(runData->selected_object->debugInfoText());
|
||||
}
|
||||
|
||||
if (input->getLeftState()) {
|
||||
|
Reference in New Issue
Block a user