Physics trees trunks should only replace air (Thanks goodlyay)

This commit is contained in:
UnknownShadow200 2017-11-27 10:15:34 +11:00
parent 2512479689
commit 02c59ae4ea

View File

@ -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);
});