diff options
author | SmallJoker <mk939@ymail.com> | 2017-08-10 09:41:56 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:31:59 +0200 |
commit | 037b01eac7d41de442149ba75a427f8b340b02dd (patch) | |
tree | 4d74e044341f0a82fcc475045d8f9ca0cdd360e4 /src | |
parent | c789c532bbda266cf2f3f27bac7d4ece9c5022bd (diff) | |
download | minetest-037b01eac7d41de442149ba75a427f8b340b02dd.tar.gz minetest-037b01eac7d41de442149ba75a427f8b340b02dd.tar.bz2 minetest-037b01eac7d41de442149ba75a427f8b340b02dd.zip |
Trigger on_rightclick regardless on the formspec meta field
Document behaviour for older clients.
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 8958826ad..68acc81b7 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -3801,6 +3801,11 @@ void Game::handlePointingAtNode(const PointedThing &pointed, if (meta && meta->getString("formspec") != "" && !random_input && !isKeyDown(KeyType::SNEAK)) { + // Report right click to server + if (nodedef_manager->get(map.getNodeNoEx(nodepos)).rightclickable) { + client->interact(3, pointed); + } + infostream << "Launching custom inventory view" << std::endl; InventoryLocation inventoryloc; |