From 127b9aed09d2b807f75495137ef1a07ca53c518b Mon Sep 17 00:00:00 2001 From: BlockMen Date: Fri, 23 Oct 2015 23:38:21 +0200 Subject: [PATCH] Fix on_rightclick() being called directly after placing node fixes https://github.com/minetest/minetest_game/issues/537 --- src/game.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index aa2fe8a00..36945f343 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -3673,11 +3673,11 @@ void Game::handlePointingAtNode(GameRunData *runData, } else { soundmaker->m_player_rightpunch_sound = SimpleSoundSpec(); - } - if (playeritem_def.node_placement_prediction == "" || - nodedef_manager->get(map.getNodeNoEx(nodepos)).rightclickable) - client->interact(3, pointed); // Report to server + if (playeritem_def.node_placement_prediction == "" || + nodedef_manager->get(map.getNodeNoEx(nodepos)).rightclickable) + client->interact(3, pointed); // Report to server + } } } } @@ -4422,4 +4422,3 @@ void the_game(bool *kill, errorstream << "ModError: " << error_message << std::endl; } } - -- 2.25.1