From ae9843cf3cc00bf6814f90e3c2d94ff644ca7237 Mon Sep 17 00:00:00 2001 From: y5nw <37980625+y5nw@users.noreply.github.com> Date: Sun, 4 Jan 2026 15:01:15 +0100 Subject: [PATCH] Allow sneak toggling when player does not have the fly priv (#16781) --- src/client/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/game.cpp b/src/client/game.cpp index d91435f6cd..078ebe776e 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -2016,7 +2016,7 @@ void Game::updatePlayerControl(const CameraOrientation &cam) // In free move (fly), the "toggle_sneak_key" setting would prevent precise // up/down movements. Hence, enable the feature only during 'normal' movement. const bool allow_sneak_toggle = m_cache_toggle_sneak_key && - !player->getPlayerSettings().free_move; + !(player->getPlayerSettings().free_move && client->checkPrivilege("fly")); //TimeTaker tt("update player control", NULL, PRECISION_NANO);