mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix node 0,0,0 being highlighted when enable_node_highlighting == false
Without this patch node 0,0,0 is highlighted when enable_node_highligting is false There is a minor lighting issue remaining, however it seems to be related to a different bug (https://github.com/minetest/minetest/issues/1887)
This commit is contained in:
parent
d4f42938a5
commit
691b18c41b
3 changed files with 9 additions and 7 deletions
|
@ -2697,7 +2697,8 @@ void Game::toggleHud(float *statustext_time, bool *flag)
|
|||
*flag = !*flag;
|
||||
*statustext_time = 0;
|
||||
statustext = msg[*flag];
|
||||
client->setHighlighted(client->getHighlighted(), *flag);
|
||||
if (g_settings->getBool("enable_node_highlighting"))
|
||||
client->setHighlighted(client->getHighlighted(), *flag);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue