diff options
-rw-r--r-- | src/client/gameui.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp index 8505ea3ae..01c733b4f 100644 --- a/src/client/gameui.cpp +++ b/src/client/gameui.cpp @@ -151,9 +151,13 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_ const NodeDefManager *nodedef = client->getNodeDefManager(); MapNode n = map.getNode(pointed_old.node_undersurface); - if (n.getContent() != CONTENT_IGNORE && nodedef->get(n).name != "unknown") { - os << ", pointed: " << nodedef->get(n).name - << ", param2: " << (u64) n.getParam2(); + if (n.getContent() != CONTENT_IGNORE) { + if (nodedef->get(n).name == "unknown") { + os << ", pointed: <unknown node>"; + } else { + os << ", pointed: " << nodedef->get(n).name; + } + os << ", param2: " << (u64) n.getParam2(); } } |