mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -04:00
Fix trees not growing when physics is on and /map tree is true. (Thanks goodlyay)
This commit is contained in:
parent
fc47df6329
commit
e0c8f84981
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user