mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Disable placement prediction for nodes that use on_rightclick
This commit is contained in:
parent
214a8b4597
commit
365c169b43
6 changed files with 15 additions and 2 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue