mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Merge 034ca313c6
into fdc149f316
This commit is contained in:
commit
8798463917
1 changed files with 3 additions and 1 deletions
|
@ -1917,7 +1917,9 @@ void Game::processUserInput(f32 dtime)
|
|||
|
||||
void Game::processKeyInput()
|
||||
{
|
||||
if (wasKeyDown(KeyType::DROP)) {
|
||||
const auto *player = client->getEnv().getLocalPlayer();
|
||||
const bool dead = player->getCAO() && player->isDead();
|
||||
if (wasKeyDown(KeyType::DROP) && !dead) {
|
||||
dropSelectedItem(isKeyDown(KeyType::SNEAK));
|
||||
} else if (wasKeyDown(KeyType::AUTOFORWARD)) {
|
||||
toggleAutoforward();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue