1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

Disallow formspec debug if the player does not have the debug privilege (#14753)

This commit is contained in:
l-koehler
2024-06-17 13:59:49 +00:00
committed by GitHub
parent fac9aac821
commit fe6da3a16b
3 changed files with 13 additions and 2 deletions

View File

@@ -1914,6 +1914,10 @@ void Game::updateDebugState()
if (!has_debug) {
draw_control->show_wireframe = false;
m_flags.disable_camera_update = false;
auto formspec = m_game_ui->getFormspecGUI();
if (formspec) {
formspec->setDebugView(false);
}
}
// noclip