mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 18:13:46 +01:00
Fix trees growing into any type of node
This commit is contained in:
parent
a0b5605db8
commit
bbd990f2cc
@ -132,7 +132,8 @@ void make_tree(ManualMapVoxelManipulator &vmanip, v3s16 p0,
|
|||||||
for(s16 ii=0; ii<trunk_h; ii++)
|
for(s16 ii=0; ii<trunk_h; ii++)
|
||||||
{
|
{
|
||||||
if(vmanip.m_area.contains(p1))
|
if(vmanip.m_area.contains(p1))
|
||||||
vmanip.m_data[vmanip.m_area.index(p1)] = treenode;
|
if(ii == 0 || vmanip.getNodeNoExNoEmerge(p1).getContent() == CONTENT_AIR)
|
||||||
|
vmanip.m_data[vmanip.m_area.index(p1)] = treenode;
|
||||||
p1.Y++;
|
p1.Y++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user