forked from Mirrorlandia_minetest/minetest
Don't predict placement of nodes if they would replace a non buildable_to node
This commit is contained in:
parent
777ac58f85
commit
a031a15487
@ -808,6 +808,8 @@ void nodePlacementPrediction(Client &client,
|
|||||||
MapNode n_under = map.getNode(nodepos);
|
MapNode n_under = map.getNode(nodepos);
|
||||||
if(nodedef->get(n_under).buildable_to)
|
if(nodedef->get(n_under).buildable_to)
|
||||||
p = nodepos;
|
p = nodepos;
|
||||||
|
else if (!nodedef->get(map.getNode(p)).buildable_to)
|
||||||
|
return;
|
||||||
}catch(InvalidPositionException &e){}
|
}catch(InvalidPositionException &e){}
|
||||||
// Find id of predicted node
|
// Find id of predicted node
|
||||||
content_t id;
|
content_t id;
|
||||||
|
Loading…
Reference in New Issue
Block a user