mirror of
https://github.com/minetest/minetest.git
synced 2025-03-14 14:22:36 +01:00
Bugfix: dont highlight (0,0,0) when theres no node pointed.
This commit is contained in:
@ -2786,8 +2786,13 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
|
||||
if(pointed != pointed_old)
|
||||
{
|
||||
infostream<<"Pointing at "<<pointed.dump()<<std::endl;
|
||||
if (g_settings->getBool("enable_node_highlighting"))
|
||||
client.setHighlighted(pointed.node_undersurface, show_hud);
|
||||
if (g_settings->getBool("enable_node_highlighting")) {
|
||||
if (pointed.type == POINTEDTHING_NODE) {
|
||||
client.setHighlighted(pointed.node_undersurface, show_hud);
|
||||
} else {
|
||||
client.setHighlighted(pointed.node_undersurface, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user