Do predict when sneak-place to node with on_rightclick

This commit is contained in:
DS-Minetest 2019-06-29 16:17:00 +02:00 committed by sfan5
parent 0971a14a57
commit 140aeabd87

@ -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;