1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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