Show infotext for unknown nodes
parent
e494b5d422
commit
d06d7cb9a4
|
@ -1814,6 +1814,14 @@ void the_game(
|
||||||
{
|
{
|
||||||
infotext = narrow_to_wide(meta->infoText());
|
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
|
Handle digging
|
||||||
|
|
Loading…
Reference in New Issue