1
0
Fork 0

Fix trees growing into any type of node

mutilcraft-mt53
Ilya Zhuravlev 2012-11-23 00:36:52 +04:00
parent a0b5605db8
commit bbd990f2cc
1 changed files with 2 additions and 1 deletions

View File

@ -132,6 +132,7 @@ void make_tree(ManualMapVoxelManipulator &vmanip, v3s16 p0,
for(s16 ii=0; ii<trunk_h; ii++)
{
if(vmanip.m_area.contains(p1))
if(ii == 0 || vmanip.getNodeNoExNoEmerge(p1).getContent() == CONTENT_AIR)
vmanip.m_data[vmanip.m_area.index(p1)] = treenode;
p1.Y++;
}