Skip to content
Permalink
Browse files

Do predict when sneak-place to node with on_rightclick

  • Loading branch information...
DS-Minetest authored and sfan5 committed Jun 29, 2019
1 parent 0971a14 commit 140aeabd877bad674971ce5b9a43b59f888e511e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/client/game.cpp
@@ -3322,7 +3322,8 @@ bool Game::nodePlacementPrediction(const ItemDefinition &playeritem_def,
if (!is_valid_position)
return false;

if (!prediction.empty() && !nodedef->get(node).rightclickable) {
if (!prediction.empty() && !(nodedef->get(node).rightclickable &&
!isKeyDown(KeyType::SNEAK))) {
verbosestream << "Node placement prediction for "
<< playeritem_def.name << " is "
<< prediction << std::endl;

0 comments on commit 140aeab

Please sign in to comment.
You can’t perform that action at this time.