From e0c8f8498142aee7d35da8fc489e0a626c59da31 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 7 Aug 2016 22:30:12 +1000 Subject: [PATCH] Fix trees not growing when physics is on and /map tree is true. (Thanks goodlyay) --- Levels/Physics/OtherPhysics.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Levels/Physics/OtherPhysics.cs b/Levels/Physics/OtherPhysics.cs index ab68b213f..524409549 100644 --- a/Levels/Physics/OtherPhysics.cs +++ b/Levels/Physics/OtherPhysics.cs @@ -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; }