From 365c169b43f61b7f957bdd302b3cf9a837cabec1 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sun, 27 Jan 2013 10:33:25 +0100 Subject: [PATCH] Disable placement prediction for nodes that use on_rightclick --- src/game.cpp | 3 ++- src/itemdef.cpp | 1 + src/itemdef.h | 2 ++ src/nodedef.cpp | 3 +++ src/nodedef.h | 2 ++ src/scriptapi.cpp | 6 +++++- 6 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index 5693c5c1..c77754b5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2531,7 +2531,8 @@ void the_game( // make that happen const ItemDefinition &def = playeritem.getDefinition(itemdef); - if(def.node_placement_prediction != "") + if(def.node_placement_prediction != "" + && !nodedef->get(map.getNode(nodepos)).rightclickable) do{ // breakable verbosestream<<"Node placement prediction for " <