From 4381fe0a0a0921e6ba79c072045be2dc04be646a Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Thu, 10 Aug 2017 09:41:56 +0200 Subject: Trigger on_rightclick regardless on the formspec meta field Document behaviour for older clients. --- src/game.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/game.cpp b/src/game.cpp index e34a02693..4588e21e0 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -3799,6 +3799,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; -- cgit v1.2.3