Skip to content

Commit 127b9ae

Browse files
committedOct 24, 2015
Fix on_rightclick() being called directly after placing node
fixes luanti-org/minetest_game#537
1 parent 380e150 commit 127b9ae

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/game.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -3673,11 +3673,11 @@ void Game::handlePointingAtNode(GameRunData *runData,
36733673
} else {
36743674
soundmaker->m_player_rightpunch_sound =
36753675
SimpleSoundSpec();
3676-
}
36773676

3678-
if (playeritem_def.node_placement_prediction == "" ||
3679-
nodedef_manager->get(map.getNodeNoEx(nodepos)).rightclickable)
3680-
client->interact(3, pointed); // Report to server
3677+
if (playeritem_def.node_placement_prediction == "" ||
3678+
nodedef_manager->get(map.getNodeNoEx(nodepos)).rightclickable)
3679+
client->interact(3, pointed); // Report to server
3680+
}
36813681
}
36823682
}
36833683
}
@@ -4422,4 +4422,3 @@ void the_game(bool *kill,
44224422
errorstream << "ModError: " << error_message << std::endl;
44234423
}
44244424
}
4425-

0 commit comments

Comments
 (0)
Please sign in to comment.