diff options
author | BlockMen <nmuelll@web.de> | 2015-10-23 23:38:21 +0200 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2015-10-24 12:18:57 +0200 |
commit | 127b9aed09d2b807f75495137ef1a07ca53c518b (patch) | |
tree | c1dce8b8001c4c4efbdae517be6459d4eb2f822f | |
parent | 380e1504eb2445fd43c03c87d23b8e41e85a7871 (diff) | |
download | minetest-127b9aed09d2b807f75495137ef1a07ca53c518b.tar.gz minetest-127b9aed09d2b807f75495137ef1a07ca53c518b.tar.bz2 minetest-127b9aed09d2b807f75495137ef1a07ca53c518b.zip |
Fix on_rightclick() being called directly after placing node
fixes https://github.com/minetest/minetest_game/issues/537
-rw-r--r-- | src/game.cpp | 9 |
1 files 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; } } - |