mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Show infotext for unknown nodes
This commit is contained in:
parent
e494b5d422
commit
d06d7cb9a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user