mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
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)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user