mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 20:53:40 -04:00
Physics trees trunks should only replace air (Thanks goodlyay)
This commit is contained in:
parent
2512479689
commit
02c59ae4ea
@ -104,7 +104,7 @@ namespace MCGalaxy.Blocks.Physics {
|
|||||||
tree.SetData(rand, tree.DefaultSize(rand));
|
tree.SetData(rand, tree.DefaultSize(rand));
|
||||||
tree.Generate(x, y, z, (xT, yT, zT, bT) =>
|
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);
|
lvl.Blockchange(xT, yT, zT, (ExtBlock)bT);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user