forked from Mirrorlandia_minetest/minetest
Do predict when sneak-place to node with on_rightclick
This commit is contained in:
parent
0971a14a57
commit
140aeabd87
@ -3322,7 +3322,8 @@ bool Game::nodePlacementPrediction(const ItemDefinition &playeritem_def,
|
|||||||
if (!is_valid_position)
|
if (!is_valid_position)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!prediction.empty() && !nodedef->get(node).rightclickable) {
|
if (!prediction.empty() && !(nodedef->get(node).rightclickable &&
|
||||||
|
!isKeyDown(KeyType::SNEAK))) {
|
||||||
verbosestream << "Node placement prediction for "
|
verbosestream << "Node placement prediction for "
|
||||||
<< playeritem_def.name << " is "
|
<< playeritem_def.name << " is "
|
||||||
<< prediction << std::endl;
|
<< prediction << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user