mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Trigger on_rightclick regardless on the formspec meta field
Document behaviour for older clients.
This commit is contained in:
parent
fa7fe40509
commit
4381fe0a0a
2 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue