From: Jeija Date: Sun, 27 Jan 2013 09:33:25 +0000 (+0100) Subject: Disable placement prediction for nodes that use on_rightclick X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=365c169b43f61b7f957bdd302b3cf9a837cabec1;p=zefram%2Fminetest%2Fminetest_engine.git Disable placement prediction for nodes that use on_rightclick --- 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 " <