Skip to content

Commit

Permalink
Input: Fix on_rightclick called when placing into air
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Nov 29, 2020
1 parent f1d72d2 commit 3176dae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/game.cpp
Expand Up @@ -3139,6 +3139,9 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud, bool show_debug)

input->clearWasKeyPressed();
input->clearWasKeyReleased();
// Ensure DIG & PLACE are marked as handled
wasKeyDown(KeyType::DIG);
wasKeyDown(KeyType::PLACE);

input->joystick.clearWasKeyDown(KeyType::DIG);
input->joystick.clearWasKeyDown(KeyType::PLACE);
Expand Down

0 comments on commit 3176dae

Please sign in to comment.