aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2013-01-27 10:33:25 +0100
committerPilzAdam <PilzAdam@gmx.de>2013-02-19 20:02:40 +0100
commit365c169b43f61b7f957bdd302b3cf9a837cabec1 (patch)
tree05117c9c24e525868c03d81e0d44a513b47d1548 /src/game.cpp
parent214a8b4597728213065f1bf880f4357b723b5bea (diff)
downloadminetest-365c169b43f61b7f957bdd302b3cf9a837cabec1.tar.gz
minetest-365c169b43f61b7f957bdd302b3cf9a837cabec1.tar.bz2
minetest-365c169b43f61b7f957bdd302b3cf9a837cabec1.zip
Disable placement prediction for nodes that use on_rightclick
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
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 "
<<playeritem.name<<" is "