Fix trees not growing when physics is on and /map tree is true. (Thanks goodlyay)

This commit is contained in:
UnknownShadow200 2016-08-07 22:30:12 +10:00
parent fc47df6329
commit e0c8f84981

View File

@ -121,11 +121,14 @@ namespace MCGalaxy.BlockPhysics {
}
TreeDrawOp op = new TreeDrawOp();
op.Level = lvl;
op.random = rand;
Vec3S32[] marks = new [] { new Vec3S32(x, y, z) };
op.SetMarks(marks);
foreach (var block in op.Perform(marks, null, lvl, null))
lvl.Blockchange(block.X, block.Y, block.Z, 0);
foreach (var block in op.Perform(marks, null, lvl, null)) {
lvl.Blockchange(block.X, block.Y, block.Z, block.Block);
}
C.data.Data = 255;
}