Skip to content
Snippets Groups Projects
Commit d06d7cb9 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Show infotext for unknown nodes

parent e494b5d4
No related branches found
No related tags found
No related merge requests found
......@@ -1814,6 +1814,14 @@ void the_game(
{
infotext = narrow_to_wide(meta->infoText());
}
else
{
MapNode n = client.getNode(nodepos);
if(nodedef->get(n).tname_tiles[0] == "unknown_block.png"){
infotext = L"Unknown node: ";
infotext += narrow_to_wide(nodedef->get(n).name);
}
}
/*
Handle digging
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment