From 02c59ae4ea514ad3642f038de5c603ad72b2f40b Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 27 Nov 2017 10:15:34 +1100 Subject: [PATCH] Physics trees trunks should only replace air (Thanks goodlyay) --- MCGalaxy/Blocks/Physics/OtherPhysics.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Blocks/Physics/OtherPhysics.cs b/MCGalaxy/Blocks/Physics/OtherPhysics.cs index 2d7cf45af..7299ac894 100644 --- a/MCGalaxy/Blocks/Physics/OtherPhysics.cs +++ b/MCGalaxy/Blocks/Physics/OtherPhysics.cs @@ -104,7 +104,7 @@ namespace MCGalaxy.Blocks.Physics { tree.SetData(rand, tree.DefaultSize(rand)); tree.Generate(x, y, z, (xT, yT, zT, bT) => { - if (bT == Block.Leaves && !lvl.IsAirAt(xT, yT, zT)) return; + if (!lvl.IsAirAt(xT, yT, zT)) return; lvl.Blockchange(xT, yT, zT, (ExtBlock)bT); });