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:
parent
fac9aac821
commit
fe6da3a16b
3 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue