From 3176daee79a8e91bd16fc275704f49fe1648db32 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 29 Nov 2020 19:20:45 +0100 Subject: [PATCH] Input: Fix on_rightclick called when placing into air --- src/client/game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/game.cpp b/src/client/game.cpp index 2001f0487..575fd46ff 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -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);