mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 02:45:21 +02:00
Stop autoforward on BACKWARD key-press (#7417)
This commit is contained in:
@@ -1861,6 +1861,9 @@ void Game::processKeyInput()
|
||||
dropSelectedItem(isKeyDown(KeyType::SNEAK));
|
||||
} else if (wasKeyDown(KeyType::AUTOFORWARD)) {
|
||||
toggleAutoforward();
|
||||
} else if (wasKeyDown(KeyType::BACKWARD)) {
|
||||
if (g_settings->getBool("continuous_forward"))
|
||||
toggleAutoforward();
|
||||
} else if (wasKeyDown(KeyType::INVENTORY)) {
|
||||
openInventory();
|
||||
} else if (input->cancelPressed()) {
|
||||
|
Reference in New Issue
Block a user