From: Jeija Date: Sun, 27 Jan 2013 09:33:25 +0000 (+0100) Subject: Disable placement prediction for nodes that use on_rightclick X-Git-Tag: 0.4.5~7^2~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=365c169b43f61b7f957bdd302b3cf9a837cabec1;p=oweals%2Fminetest.git Disable placement prediction for nodes that use on_rightclick --- diff --git a/src/game.cpp b/src/game.cpp index 5693c5c12..c77754b5f 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 " <